Help for this page

Select Code to Download


  1. or download this
    sub OpenSomething
    {
          my ($param) = @_;
    ...
          my ($thing) = @_;
          $thing->close();
    }
    
  2. or download this
    sub CloseSomething
    {
          my ($thing) = @_;
    ...
    
          $thing->close();
    }
    
  3. or download this
    sub OpenSomething
    {
          my ($param) = @_;
    ...
          die "Cannot CloseSomething() with undefined parameter" unless (d
    +efined $thing);
          $thing->close();
    }