in reply to why did i die?
lanx@nc10-ubuntu:/tmp$ perl -e 'use subs "die"; sub die { print "expec +ted\n" }; eval "4/0"' lanx@nc10-ubuntu:/tmp$ perl -e 'use subs "die"; sub die { print "expec +ted\n" }; eval "die()"' expected
but '&CORE::die' will of course still call the original...
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why did i die?
by markov (Scribe) on Apr 02, 2014 at 10:40 UTC | |
by LanX (Saint) on Apr 02, 2014 at 11:42 UTC | |
by LanX (Saint) on Apr 02, 2014 at 10:52 UTC |