I disagree. If you know where you are in a calling stack, this has worked for me numerous times:
{ local $Carp::CarpLevel = 2; carp "Some error"; }
No need to worry about croak or confess here that I can see. What am I missing?
In reply to Re: Re (tilly) 2: Confusion about properly using Carp
by steves
in thread Confusion about properly using Carp
by jeffa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |