Use an anonymous sub...
my @files; find( sub { push @files, $_ if /\.mp3\z/ } => $root );
--k.
In reply to Re: Using File::Find with a bit of elegance
by Kanji
in thread Using File::Find with a bit of elegance
by zjunior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |