>>>>> "Evan" == Evan McNabb <[EMAIL PROTECTED]> writes:
Evan> I've been working on a little script for a while but I can't seem to get
Evan> this part working. What I want to do is list all of the *.jpg files in a
Evan> directory (ls *.jpg) and then have an array with each filename as elements
Evan> of that array. Its probably easy but I just can't get it right yet... :-)
Evan> Thanks for the help.
my @result = <*.jpg>;
or
my @result = glob "*.jpg";
if you prefer that syntax.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!