Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: example: eval fails but $@ ends up empty (was: GOTO...)

by tye (Sage)
on Jul 15, 2002 at 22:17 UTC ( #181946=note: print w/ replies, xml ) Need Help??


in reply to Re: (tye)Re: GOTO considered (a necessary) evil?
in thread GOTO considered (a necessary) evil?

Sure:

sub DESTROY { eval "1" } eval 'my $x = bless {}; die "ouch\n"'; print "($@)\n";
which prints "()" not "(ouch\n)".

        - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2016-07-01 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (407 votes). Check out past polls.