Zentara,
Wow! Thank you so much for sharing your knowledge, I learned a lot!
Brian
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of zentara
> Sent: Monday, February 14, 2005 9:41 AM
> To: beginners@perl.org
> Subject: Re: C
> "Zentara" == Zentara <[EMAIL PROTECTED]> writes:
Zentara> (@tfiles) = map{ $_ =~ /(.*).txt$/ } @tfiles;
Much more simply written as:
s/\.txt$// for @tfiles;
Zentara> (@jfiles) = map{ $_ =~ /pics\/(.*).jpg$/ } @jfiles;
similar here.
--
Randal L. Schwartz - Stonehenge Consulting Servi
zentara wrote:
On Sat, 12 Feb 2005 12:32:22 -0500, [EMAIL PROTECTED] (Brian Volk) wrote:
Hi All,
I have two directories, one directory contains 20 text files and the
other directory contains 15 jpeg's. I need to create an html page for
each text file and insert the image if one exist for that
Hi All,
I have two directories, one directory contains 20 text files and the
other directory contains 15 jpeg's. I need to create an html page for
each text file and insert the image if one exist for that text file.
BTW, the file names correspond to one another. For example, 12345.txt /
123