Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: sftp problem

by nardo (Friar)
on Aug 09, 2001 at 02:23 UTC ( #103258=note: print w/replies, xml ) Need Help??

in reply to sftp problem

According to the Net::SFTP documentation:

$local is optional. If not provided, the contents of the remote file $remote will be either discarded, if get is called in void context, or returned from get if called in a non-void context. Presumably, in the former case, you will use the callback function \&callback to "do something" with the contents of $remote.

Your first example calls it in void context without providing a $local, thus nothing useful happens.

Replies are listed 'Best First'.
Re: Re: sftp problem
by monk2b (Pilgrim) on Aug 09, 2001 at 02:36 UTC
    Wow how easy was that. Thanks nardo
    learning mok2b

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2022-07-06 20:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found