Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Execute function before exit of do() block

by moritz (Cardinal)
on Jan 29, 2014 at 19:04 UTC ( #1072561=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # slave.pl:
    use 5.014;
    ...
    
    # or if everything works fine:
    $CleanExit = 1;
    
  2. or download this
    $ perl -wE 'do "slave.pl"; say "Back in master"'
    doing something
    cleaning up slave.pl
    Back in master
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2015-09-03 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (108 votes), past polls