Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Below is the offending code:
if ( -e "$ENV{HOME}/$HISTFILE" ) { print "YEP! It exists\n"; $href = retrieve( "$ENV{HOME}/$HISTFILE" ); } else { croak "I cant find $HISTFILE in your HOME dir "; }
Every time I run my program I get the error:
"Uncaught exception from user code"
What is an "uncaught exception"? How do I tell perl not to print this text?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A clean die/croak
by LanX (Saint) on Feb 25, 2022 at 19:37 UTC | |
by Anonymous Monk on Feb 26, 2022 at 13:41 UTC |