in reply to open fails to open file when filename read from STDIN
my $file = <STDIN>; chomp $file; open my $handle, '<', $file or die "Can't read $file: $!"; [download]