Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How can I get Perl via Carp, to SCREAM -- more informative output via cluck(),confess(),longmess()?

by soonix (Deacon)
on Dec 07, 2013 at 10:25 UTC ( #1066114=note: print w/ replies, xml ) Need Help??


in reply to How can I get Perl via Carp, to SCREAM -- more informative output via cluck(),confess(),longmess()?

That's actually a bad example, because it's cat, not perl, detecting that the file doesn't exist. Perl can't add to this - not even the shell can't, because it doesn't know what cat will do with that argument string.

That is the problem with all system and related functions (backticks, etc). Pure perl programs probably do profit from Carp and consorts.


Comment on Re: How can I get Perl via Carp, to SCREAM -- more informative output via cluck(),confess(),longmess()?
Select or Download Code
Re^2: How can I get Perl via Carp, to SCREAM -- more informative output via cluck(),confess(),longmess()?
by taint (Chaplain) on Dec 07, 2013 at 20:30 UTC
    Good advice, soonix. Thank you.

    In my humble defense, I did mention cat threw the error. :)

    Thanks again, soonix.

    --Chris

    Hey. I'm not completely useless. I can be used as a bad example.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2014-07-26 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls