Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: copying file usnig Net::SCP module

by Khen1950fx (Canon)
on Sep 19, 2006 at 08:41 UTC ( #573658=note: print w/replies, xml ) Need Help??

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( "", "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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2022-05-23 23:38 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (82 votes). Check out past polls.