|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^6: Program unexpectedly terminatesby tobyink (Prior) |
| on Nov 19, 2012 at 10:33 UTC ( #1004507=note: print w/ replies, xml ) | Need Help?? |
|
There's another case not covered: exec. Something like exec("/bin/true") will effectively exit a script without triggering any END blocks, etc. Illustration:
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||