On Wed, 27 Jun 2001, Hans Holtan wrote:
> I forgot to mention that I did open the output files earlier in the
> program, ie CHR1, CHR3 ... CHR5.
But you can't say $file = "CHR1", beacuse then you are creating a symbolic
reference to a filehandle. Very bad. Do this instead:
$file = *CHR1;
Then you can properly use your filehandle. What you really want to do is
create an array of open filehandles (going by the code you had) and then
do:
print $file[$_] "stuff";
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
management, n.:
The art of getting other people to do all the work.