in reply to Re (tilly) 2: Confusion about properly using Carp
in thread Confusion about properly using Carp
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 4: Confusion about properly using Carp
by tilly (Archbishop) on Mar 03, 2002 at 03:30 UTC | |
by steves (Curate) on Mar 03, 2002 at 10:41 UTC | |
by tilly (Archbishop) on Mar 04, 2002 at 04:10 UTC |