in reply to Re^2: SSH connection with module
in thread SSH connection with module
When you invoke
you are actually passing TWO parameters into login_auth - which you can retrieve using:$cisco->login_auth( $whatever );
Instead of passing @ARGV, you should pass it as a reference : \@ARGV.sub login_auth{ my ($self, $whatever) = @_; # Now $self contains whatever sub new() put into it. # and $self can be updated to include more useful things. }
This will allow passing additional parameters if necessary.
OK - next question ?...
What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
-Larry Wall, 1992
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: SSH connection with module
by Anonymous Monk on Mar 10, 2014 at 04:34 UTC |