Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: Check21/X9.37 text extractor

by ambrus (Abbot)
on Aug 01, 2009 at 12:07 UTC ( #785087=note: print w/replies, xml ) Need Help??

in reply to Re: Check21/X9.37 text extractor
in thread Check21/X9.37 text extractor

You should include the $! variable in the error message so you know why it failed to open:

There's no need to add that to every statement for a quick script unless you do expect to run on that error often. You can figure out the error code after the fact as perl's die statement helpfully sets the exit code to $! % 256 || 1, so eg. if you print the exit code from the shell after you get this error message and you find that it's 2 you can be sure the error was ENOENT (No such file or directory). (The higher error codes are platform-dependent, but you can still find out the strerror message for them with eg. perl -we 'die($!=2)')

Replies are listed 'Best First'.
Re^3: Check21/X9.37 text extractor
by Anonymous Monk on Aug 02, 2009 at 09:17 UTC

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-11-29 23:32 GMT
Find Nodes?
    Voting Booth?

    No recent polls found