# Assign path to $somedir opendir DH, $somedir or die "Cannot open $somedir: $!"; my @photos = grep { /\.jpg$/i } readdir DH; closedir DH;
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid - reading files) Re: File globbing to a different directory
by Ovid
in thread File globbing to a different directory
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |