Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl ssh error

by keszler (Priest)
on Oct 10, 2011 at 05:21 UTC ( #930531=note: print w/ replies, xml ) Need Help??


in reply to Perl ssh error

Net::SSH::Perl's new method is documented as Net::SSH::Perl->new($host, %params). Try

my $ssh = Net::SSH::Perl->new($host, debug=>1, use_pty=>1 ); #-- authenticate $ssh->login($user, $password);

update - never mind, 'view source' let me see that the new appears to be OK.

Your use strict(); is wrong, that may be part of your problem.

$ perl -lE' > use strict(); > say $x; > ' $ perl -lE' use strict; say $x; ' Global symbol "$x" requires explicit package name at -e line 3. Execution of -e aborted due to compilation errors. $


Comment on Re: Perl ssh error
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-09-22 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (184 votes), past polls