Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Zombie Hunter (666th post)

by jeffa (Bishop)
on Jan 19, 2002 at 00:46 UTC ( #139947=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -lw
    
    ...
    sub health {$_=shift->{hits};$_ > 1 ?"$_ hits":"$_ hit"}
    sub regen  {shift->{hits}+=3 if int(rand 2)}
    sub destroy{print qq|"brainsss..." zombie destroyed| and exit}
    
  2. or download this
    kill `ps Af | grep perl | grep -v grep | awk '{ print $2 }'`
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2019-10-23 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?