Directory munging [was: Re: Three snippets]

Eden Li at
Fri May 4 17:09:13 CDT 2001

Uh oh... Never use map{} in void context.  It's always best
to use a for() construct in its place if you're not going to do
anything with map's output.

Also, another thing to consider for file searching is the
File::Find module... quite powerful and easy to use.


> > >>>>> "W" == Webmaster  <webmaster at> writes:
> > W> map { &do_file_or_dir } <$dir/*>;
> > W> or
> > W> map { &do_dirs_only } grep {-d} <*>;

More information about the Phoenix-pm mailing list