foreach(@files){ last if $_ eq $img_name; print $_,"\n"; }
If you need to do more complex or recursive searching, check out File::Find.
Update: Fixed typo. (Thanks Grundle :) )
In reply to Re: Search Directory
by friedo
in thread Search Directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |