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

Try new.

Replies are listed 'Best First'.
Re^2: Can't locate object method "New" via package "Net::SSH" at
by DrHyde (Prior) on Apr 25, 2013 at 10:17 UTC
    And also, stop using indirect object syntax.
      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;
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ