Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Should I use carp/croak or warn/die

by Haarg (Curate)
on May 31, 2018 at 19:23 UTC ( #1215566=note: print w/replies, xml ) Need Help??


in reply to Re: Should I use carp/croak or warn/die
in thread Should I use carp/croak or warn/die

Having an option to "carp" from the first caller in a different package would be nice.
This is how carp and croak always work.
  • Comment on Re^2: Should I use carp/croak or warn/die

Replies are listed 'Best First'.
Re^3: Should I use carp/croak or warn/die
by LanX (Archbishop) on May 31, 2018 at 19:33 UTC
    Yeah I noticed in the meantime

    See Re^4: Should I use carp/croak or warn/die (@CARP_NOT)

    Though I'm not happy about the documentation.

    the Synopsis says

    > warn user (from perspective of _caller_)

    But later the doc says inside the text

    > carp() or croak() which report the error as being from where your module was called.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-03-29 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (169 votes). Check out past polls.

    Notices?