Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
opendir(DIR,$img_dir); my @files = readdir(DIR); closedir(DIR); foreach(@files){ if($_ eq $img_name){exit;}else{ print $_,"\n";} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search Directory
by friedo (Prior) on Feb 01, 2005 at 18:17 UTC | |
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 | |
|
Re: Search Directory
by Grygonos (Chaplain) on Feb 01, 2005 at 18:51 UTC | |
by Anonymous Monk on Feb 01, 2005 at 19:54 UTC | |
by Grygonos (Chaplain) on Feb 01, 2005 at 20:02 UTC | |
|
Re: Search Directory
by gopalr (Priest) on Feb 02, 2005 at 05:10 UTC | |
|
Re: Search Directory
by radiantmatrix (Parson) on Feb 01, 2005 at 21:21 UTC | |
|
Re: Search Directory
by blazar (Canon) on Feb 01, 2005 at 19:28 UTC | |
|
Re: Search Directory
by sh1tn (Priest) on Feb 01, 2005 at 19:12 UTC |