Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: sftp problem

by nardo (Friar)
on Aug 09, 2001 at 02:23 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-25 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found