in reply to FILEHANDLE with $var in name (for pipe)
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: FILEHANDLE with $var in name (for pipe)
by kappa (Chaplain) on Apr 05, 2002 at 12:05 UTC |