V
Vsevolod Afanassiev
I need to build an array of filehandles
so different records go into different output files
depending on a value. This is the code:
$dt = 20030701;
open ( "$FH{$dt}", ">output" . "." . $dt ) or die "$!";
print { "FH{$dt}" } "something ...\n";
close ( "$FH{$dt}" );
It works when run without "-w" but with "-w"
complains of use of uninitialized value.
What's the correct way of doing it?
Thanks
so different records go into different output files
depending on a value. This is the code:
$dt = 20030701;
open ( "$FH{$dt}", ">output" . "." . $dt ) or die "$!";
print { "FH{$dt}" } "something ...\n";
close ( "$FH{$dt}" );
It works when run without "-w" but with "-w"
complains of use of uninitialized value.
What's the correct way of doing it?
Thanks