perlinux has asked for the wisdom of the Perl Monks concerning the following question:
and after Gimp processing, I rename these images (temp_$number.jpg), and again the code is:opendir THIS, "." or die "Error: $!"; my @allimages = grep /\.jpg$/i , readdir THIS;
but @renamedimages is empty.my @renamedimages = grep /^temp_\d\d+\.jpg$/i, readdir THIS;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opendir, readdir & closedir.
by hv (Prior) on Apr 30, 2004 at 14:22 UTC | |
|
Re: Opendir, readdir & closedir.
by coec (Chaplain) on Apr 30, 2004 at 14:23 UTC | |
|
Re: Opendir, readdir & closedir.
by matija (Priest) on Apr 30, 2004 at 14:23 UTC | |
|
Re: Opendir, readdir & closedir.
by flyingmoose (Priest) on Apr 30, 2004 at 19:03 UTC |