Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[Discipulus]: wow i have a good 19.35 in 2017
[choroba]: I had 24.5 in January, but the last three month are below 18.5
[choroba]: and I'm trying hard not to get involved in troll feeding.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-04-26 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (475 votes). Check out past polls.