Punto has asked for the wisdom of the Perl Monks concerning the following question:
I know I can do this:open(NC[$i],'echo "$header"|nc $host $port|');
but then I can get the data using <NC0>, <NC1>, etc, but not using$handle[$i] = "NC$i"; open($handle[$i],'echo "$header"|nc $host $port|');
So how could I use an array of filehandles?<$handle[$i]>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: I need an array of filehandles.
by jbert (Priest) on Apr 25, 2000 at 13:40 UTC | |
by Anonymous Monk on Apr 25, 2000 at 20:53 UTC | |
by Punto (Scribe) on Apr 25, 2000 at 21:29 UTC | |
|
RE: I need an array of filehandles.
by tacho (Initiate) on Apr 25, 2000 at 12:51 UTC | |
|
Re: I need an array of filehandles.
by perlmonkey (Hermit) on Apr 25, 2000 at 08:42 UTC | |
by guice (Scribe) on Apr 25, 2000 at 09:22 UTC |