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

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: copying file usnig Net::SCP module
by ysth (Canon) on Sep 19, 2006 at 06:29 UTC
    So what's on line 5? (You've only shown us 4 lines.)

    What does this do?

    use Net::SCP qw(iscp); iscp("metrica\@155.226.206.195:/apps/inst1/metrica/sample.txt", ".");
    (update: escaped @)
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: copying file usnig Net::SCP module
by Khen1950fx (Canon) on Sep 19, 2006 at 08:41 UTC
    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.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: copying file usnig Net::SCP module
by Anonymous Monk on Sep 19, 2006 at 07:03 UTC