RosettaCodeData/Task/Exceptions/Perl/exceptions-3.pl

7 lines
103 B
Perl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# catch an exception and show it
try {
die "this could go wrong mightily";
} catch {
print;
};