Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Help with Net::OpenSSH::Compat::SSH2

by 7stud (Deacon)
on Mar 15, 2013 at 03:31 UTC ( [id://1023605]=note: print w/replies, xml ) Need Help??


in reply to Help with Net::OpenSSH::Compat::SSH2

On a side note,

use Net::SSH2; eval { require Net::SSH2; }; if ($@) )

Your use statement is equivalent to:

BEGIN { require Net::SSH2; Net::SSH2->import(); }

...which executes at compile time. So your eval() happens after the party is over.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-28 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found