Help for this page

Select Code to Download


  1. or download this
    package Foo;
    use strict;
    ...
    
    sub error  { $_[0]->{_errno}  }
    sub errmsg { $_[0]->{_errmsg} }
    
  2. or download this
    use Foo;
    my $thing = Foo->new;
    ...
      # you can also do if ( $thing->error ) {
      die $thing->errmsg;
    }