in reply to Re: reading files to different output files.
in thread reading files to different output files.
is there any solution using this approach:
use IO::File; my @fh; my @file_names = ("output1.txt", "output2.txt", "output3.txt"); for (my $i=0; $i<=$#file_names; $i++){ $fh[$i]= IO::File->new( ">$file_names[$i]" ) || die "Cannot open $ +file_names[$i]: $!.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reading files to different output files.
by choroba (Cardinal) on May 28, 2017 at 17:04 UTC | |
|
Re^3: reading files to different output files.
by LanX (Saint) on May 28, 2017 at 13:24 UTC | |
by ic23oluk (Sexton) on May 28, 2017 at 13:39 UTC | |
by marinersk (Priest) on May 28, 2017 at 14:05 UTC | |
by ic23oluk (Sexton) on May 28, 2017 at 15:11 UTC | |
by shmem (Chancellor) on May 28, 2017 at 16:16 UTC | |
by marinersk (Priest) on May 28, 2017 at 21:53 UTC |