[Chicago-talk] Wildcarding files on readdir
Andy Lester
andy at petdance.com
Mon Jul 24 20:57:02 PDT 2006
On Jul 24, 2006, at 8:49 PM, Jim Jacobus wrote:
>
> I'm trying to figure out how to create a string that will enable me
> to read selective files in a directory with a wildcard. In other
> words I'm trying to do a function line "dir *0.jpg" (which would get
> all jpg files that end in zero). Closest I've got is:
It handles it for you automatically.
my @files = <*0.jpg>;
or, to avoid using the angle operators,
my @files = glob( "*0.jpg" );
xoxo,
Andy
--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
More information about the Chicago-talk
mailing list