Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: END blocks in perl

by Sidhekin (Priest)
on Oct 16, 2007 at 14:32 UTC ( #645188=note: print w/replies, xml ) Need Help??

in reply to END blocks in perl

what will prevent the END block from executing?

exec, for starters:

perl -le 'END { print "Can you hear me?" } exec $^X, -le => exit => 0'

Also, internal errors (segfaults, core dumps, whatever):

perl -le 'END { print "Can you hear me?" } dump'

So don't rely on it too much.

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2016-10-21 00:45 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (284 votes). Check out past polls.