Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Can't locate object method "New" via package "Net::SSH" at

by choroba (Chancellor)
on Apr 25, 2013 at 10:22 UTC ( #1030643=note: print w/replies, xml ) Need Help??


in reply to Re^2: Can't locate object method "New" via package "Net::SSH" at
in thread Can't locate object method "New" via package "Net::SSH" at

It is good to provide arguments for a statement like this. Moreover, the "direct" syntax is not much better. The safe ways are either appending ::, which works equally well for both ways, or using the "direct" syntax with quoted class names:
my $x = new Class::; my $y = Class::->new; my $z = 'Class'->new;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030643]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-12-03 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.