in reply to Find file name
That will function in a similar fashion to your find command except you'll get back a list of filenames instead a string of newline seperated filepaths.use File::Spec; use File::Find::Rule; my @files = map { (File::Spec->splitpath $_)[-1] } find(file => name => "*ofas.db", in => $db_path);
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Find file name
by blueapache (Acolyte) on Nov 11, 2003 at 16:36 UTC | |
by broquaint (Abbot) on Nov 11, 2003 at 17:10 UTC | |
by blueapache (Acolyte) on Nov 11, 2003 at 17:20 UTC | |
by broquaint (Abbot) on Nov 11, 2003 at 17:30 UTC |