Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

by 7stud (Deacon)
on Mar 15, 2013 at 03:31 UTC ( #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.

Comment on Re: Help with Net::OpenSSH::Compat::SSH2
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2015-07-06 17:41 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (79 votes), past polls