Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://538461]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2016-12-04 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (69 votes). Check out past polls.