go ahead... be a heretic | |
PerlMonks |
Re: FILEHANDLE with $var in name (for pipe)by moodster (Hermit) |
on Apr 05, 2002 at 11:22 UTC ( [id://156886]=note: print w/replies, xml ) | Need Help?? |
I'm no expert on filehandles, but I believe it's possible to create a scalar reference to a filehandle (something like this):
Then you can create an array of filehandle references and use your $loop variable to index that array. So, instead of FROM_CHILD_$loop, you'd use:
Cheers,
In Section
Seekers of Perl Wisdom
|
|