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
    Thanks - this is what I was trying to accomplish and the way I was trying to accomplish it. I just couldn't seem to see past my nose!