Directory munging [was: Re: Phoenix.pm: Three snippets]

Eden Li eden.li at asu.edu
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.

Eden

> > >>>>> "W" == Webmaster  <webmaster at azwebs.com> 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