U
usenet
I have an ordinary scalar variable. I want to sFTP that to a remote
host, placing the value of my variable ($foo) into a file on the remote
host.
The Net::SFTP module uses this syntax:
my $sftp = Net::SFTP->new($host);
$sftp->put($local, $remote [, \&callback ])
where $local and $remote specify filenames.
But I don't want to bother with creating a temporary file on my local
host - I just want to send the value of my scalar variable $foo.
Is there a way I can make Perl treat $foo (some data) as $local (a file
identifier) so I can transfer the value of $foo without creating a
temporary file?
Thanks!
host, placing the value of my variable ($foo) into a file on the remote
host.
The Net::SFTP module uses this syntax:
my $sftp = Net::SFTP->new($host);
$sftp->put($local, $remote [, \&callback ])
where $local and $remote specify filenames.
But I don't want to bother with creating a temporary file on my local
host - I just want to send the value of my scalar variable $foo.
Is there a way I can make Perl treat $foo (some data) as $local (a file
identifier) so I can transfer the value of $foo without creating a
temporary file?
Thanks!