sub new { my $class = shift; return bless { object => shift, method => shift }, $class; } sub DESTROY { my $self = shift; my $object = $self->{object}; my $method = $self->{method}; #print "close handles!"; return $object->$method; } __PACKAGE__ }->new($ssh2, 'disconnect');
1 POD Error
The following errors were encountered while parsing the POD:
Unknown directive: =head
To install SSH::Command, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SSH::Command
CPAN shell
perl -MCPAN -e shell install SSH::Command
For more information on module installation, please visit the detailed CPAN module installation guide.