in reply to Re^4: reading files to different output files.
in thread reading files to different output files.
Do I have to somehow open the input files in the script?
Yes.
open my $input_file, '<', $input_filename or die "Cannot open input fi +le $input_filename: $!.\n"; while (my $input_line = <$input_file>) { chomp $input_line; print "[$input_line]\n"; } close $input_file;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: reading files to different output files.
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 |