Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be appreciated...my $directory = 'Where/the/directory/is'; opendir(DIR,$directory); my @files = grep { $_ ne '.' && $_ ne '..' }readdir DIR; closedir(DIR); foreach(@files) { print "<A HREF='$_'>$_</A>"; print "<BR>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: finding specific files
by turnstep (Parson) on Feb 26, 2001 at 21:01 UTC | |
|
Re: finding specific files
by merlyn (Sage) on Feb 26, 2001 at 20:52 UTC | |
|
Re: finding specific files
by thealienz1 (Pilgrim) on Feb 26, 2001 at 21:36 UTC | |
|
Re: finding specific files
by Anonymous Monk on Feb 26, 2001 at 21:44 UTC |