in reply to Search Directory
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 :) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search Directory
by Grundle (Scribe) on Feb 01, 2005 at 18:28 UTC | |
by Anonymous Monk on Feb 01, 2005 at 18:35 UTC | |
by Grundle (Scribe) on Feb 01, 2005 at 18:45 UTC |