in reply to Re^2: SSH connection with module
in thread SSH connection with module

Yes - you are asking the right questions - so you are close to "getting it".

When you invoke

$cisco->login_auth( $whatever );
you are actually passing TWO parameters into login_auth - which you can retrieve using:
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. }
Instead of passing @ARGV, you should pass it as a reference : \@ARGV.

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
    No more questions...for now :) That explained it and I've been playing with passing $exp back and forth. I think I'm figuring it out. Thanks!