Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    print "My \$result is now $result.\n";
    
    1;
    
  2. or download this
    my $result = $obj->method($argument);
    print "My <explicative deleted> argument still is: $argument. \n";
    ...
    } else {
      print STDERR "Yeah!  It worked.";
    }
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    }
    
    1;
    
  4. or download this
    if($test) { $obj->method(); }
    
  5. or download this
    if($test) {
      print LOG "The test was successful, now invoking \$obj->method().";
    ...
    } else {
      print LOG "The test was unsuccessful, so we won't invoke the \$obj->
    +method().";
    }
    
  6. or download this
    if(){
    
    } else {
    
    }