Help for this page

Select Code to Download


  1. or download this
    sub new {
        my ($thing) = @_ ;
    ...
        # make sure to return true-evaluating or at least non-undef value
        return 1;
    }
    
  2. or download this
    $O->foo() or die "could not blabla: ".$O->error();
    
  3. or download this
    sub bar {
        my ($self) = @_;
    ...
    
    $O->bar() or die "could not blabla: ".$O->error();
    # "could not blabla: bar failed to rhubarb: foo: could not do thisandt
    +hat"