in reply to Recursive Subdirectories
You're in luck! Recursively searching directories is much easier than this.
use strict; use File::Find; find (\&wanted, '.'); sub wanted { next if -d; # skip if it's a directory # $_ is the name of the file # $File::Find::name is the full path and name to the file }
See perldoc File::Find for more information.
With the above stub, just fill in the logic in the &wanted subroutine.
Cheers,
Ovid
New address of my CGI Course.
Silence is Evil (feel free to copy and distribute widely - note copyright text)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Recursive Subdirectories
by broquaint (Abbot) on Apr 16, 2003 at 16:45 UTC | |
by runrig (Abbot) on Apr 16, 2003 at 18:03 UTC | |
by tye (Sage) on Apr 16, 2003 at 18:17 UTC |