Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Question about alternative to File::Find

by tinita (Parson)
on Sep 29, 2012 at 17:40 UTC ( #996407=note: print w/replies, xml ) Need Help??


in reply to Question about alternative to File::Find

you can pass a sub reference. this way you don't need a global variable. short example:
{ # somewhere in a block or sub my @files; find(sub { push @files, $_ }, $dir); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996407]
help
Chatterbox?
[erix]: when the google-per-line coefficient > 1 you have located a good place to learn a lot ;)
[erix]: also known, I think, as a gravy train :P
erix google "gravy train" :)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2018-05-22 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?