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:my $handle; open $handle, "filename";
$from_child[ $loop ]
Cheers,
--Moodster
In reply to Re: FILEHANDLE with $var in name (for pipe)
by moodster
in thread FILEHANDLE with $var in name (for pipe)
by MadMax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |