[EMAIL PROTECTED] wrote:

Hi John,

I picked up the Perl book last week so all of your whys will get one
answer. "Because that the way I thought it would work!"

There are a *lot* of Perl books out there. Which one in particular did you pick up?


perldoc -q "How do I find yesterday.s date" : This is cool I didn't
realize I could do this (FAQ keyword). Of course I haven't got into
man perldoc to much either.

CHOMP: I still trying to figure out CHOMP. The way I understand it it
is used remove new lines \n.

chomp() removes whatever the contents of $/ (Input Record Separator) is, if $/ contains a non-zero length string. Normally $/ contains the string "\n" but it can be set to any string including '' (paragraph mode.)


File Open Verification: I get that. By using something like or die
"Cannot open $blahblah: $!";

Yes, you had done that with opendir() and it is good practice to verify all perl functions that work with the file system or operating system.


Yep. I missed the escape character in the regex.... /file\.zip/

Yes. I will know what the files names are in advance.. I guess I was
caught up learning (I wanted to open a directory and read the
contents) and didn't think simplicity.

I will try your code out. It looks so much easier...

P.S. Thanks Chris for your initial comments. It's all helpful to me at
this point.



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to