http://qs1969.pair.com?node_id=573658


in reply to copying file using Net::SCP module

I think that you have the procedural interface confused with the OO interface. Your code mixes the two. It seems that your intent was to use the procedural interface:

 use Net::SCP qw(scp); is procedural---not OO.

$scp = Net::SCP->new( "155.226.205.195", "metrica"); $scp->get("/apps/instl/metrica/sample.txt") or die $scp->{errstr};
---is OO.

I would stick with procedural and take another look at the code that ysth posted.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.