http://www.perlmonks.org?node_id=538461


in reply to Re^2: dynamic zcat and grep
in thread dynamic zcat and grep

You may be able to get a better idea of what is going wrong if you include $! in your error message. This is the variable in which Perl stores the O/S error message when things like open fail, e.g.

$fn = "non_existant_file"; open IN, "<$fn" or die "open: $fn: $!\n";

would error with

open: non_existant_file: no such file or directory

Cheers,

JohnGG