Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: print on reboot or process shutdown

by marto9 (Beadle)
on Jul 30, 2008 at 10:40 UTC ( [id://701078]=note: print w/replies, xml ) Need Help??


in reply to print on reboot or process shutdown

I've got this now.
$endthis = 0; ... $endthis = 1; exit; END { if ($endthis == 0) { open(THEND,">ABORTED"); close(THEND); } }
But it doesn't work well. I dunno why. And I also have another prob. die "not good!\n" && ($endthis = 1) && (unless ($ARGV[1])); What's the correct syntax for this? Thx in advance

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-20 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found