Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by choroba (Abbot)
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;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^3: Can't locate object method "New" via package "Net::SSH" at
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030643]
help
Chatterbox?
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: (7)
As of 2014-12-21 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (102 votes), past polls