Help for this page

Select Code to Download


  1. or download this
    if (-s "$imagefile" < 700_000_000 and -e "$imagefile") {
            print '<script language="JavaScript">
    ...
    
    ( $? == 0 ) ? &success($date, $time, $hostname, $logdir, $to, $from) :
    &failure($date, $time, $hostname, $logdir, $to, $from);
    
  2. or download this
    eval {
      foo() or die "foo failed";
    ...
        # deal with unexpected error
      }
    }