in reply to How to handle encoding for STDERR
Your open( my $in, '<', 'non-existing-file' ) || die $!; should be
open( my $in, '<', 'path-to-file-name' ) or die "Can't open path-to-f +ile-name, $!";
(with a [now deprecated, at least by some] bareword and variant quote symbols)
# for a writemy $datafile; open (OUT, ">", $datafile ) or die "Can't open $datafile for write, $! +";
|
|---|