Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: dynamic zcat and grep

by johngg (Abbot)
on Mar 22, 2006 at 10:50 UTC ( #538461=note: print w/ replies, xml ) Need Help??


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


Comment on Re^3: dynamic zcat and grep
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://538461]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (17)
As of 2015-07-28 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (256 votes), past polls