Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2014-12-22 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls