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

Replies are listed 'Best First'.
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.