in reply to output of Find::File into an array
I'm going to assume that the real code runs in taint mode, checking that config.ini contains no mischievious pranks. ( That is the case, right?...).
File::Find doesn't work the way you seem to think. It does not return anything but a status. Here's how I'd populate @filesfound:
my @filesfound; find( sub {eval( "$wanted") and push @filesfound, $File::Find::name }, "$start" );
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: output of Find::File into an array
by Limbic~Region (Chancellor) on Aug 25, 2002 at 01:56 UTC |