http://qs1969.pair.com?node_id=192613


in reply to output of Find::File into an array

You can push into @filesfound within find's code block. I suspect that you'll find considerable help from mirod's post, here: Why I hate File::Find and how I (hope I) fixed it.

mkmcconn

Replies are listed 'Best First'.
Re: Re: output of Find::File into an array
by Limbic~Region (Chancellor) on Aug 25, 2002 at 02:02 UTC
    Thanks mkmcconn, but the users that are going to be adding things to the config file aren't going to know how/what/why to push information to the array since it is in the code that shouldn't need to be modified. Zaxo came up with a viable solution that I am going to use. I did realize that what I was trying to do was the equivalent of expecting to see "foo bar" as a result to:
    my $var = print "foo bar"; print "$var\n"