Help for this page

Select Code to Download


  1. or download this
    $exit = &command( "/bin/snore", 60 );
    
  2. or download this
    eval {
      local $SIG{ALRM} = sub { die "alarm clock restart" };
    ...
      alarm 0;
    };
    if ($@ and $@ !~ /alarm clock restart/) { die }
    
  3. or download this
    #! /usr/bin/perl
    use strict;
    ...
      if( $@ ) { return undef    }
      else     { return $? / 256 }
    }
    
  4. or download this
    my JAPH:
      print"Just another Perl hacker\n";
      #    ^ look, no space! pretty tricky hey?