Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I can pass in values to wanted and mess with them, but I can't get anything out. Any ideas?use File::Find; @crap = (); finddepth (\(&wanted(\@crap)), $TMPDIR); print "crap is: @\n"; sub wanted { $in = $_[0]; push @$in, "dude"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning values from File::Find processing function
by merlyn (Sage) on Feb 16, 2001 at 21:21 UTC |