Help for this page

Select Code to Download


  1. or download this
      system("foo") == 0 or die "foo failed; rc=$?";
    
    ...
      # ... do something with FOO ...
      close FOO;
      ($? == 0) or die "sub-process `command' failed; rc=$?";
    
  2. or download this
    $h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/."
    ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";