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