Dan Muey wrote:
> Hello all,
> Has any body done this/know how to dit/know if it's even possible??
>
>
> __SHORT VERSION__
> How do I / Is it possible to -- use Net::FTP to send a file to a
> remote server that isn't an actual file but rather a variable with
> the file's contents?
>
> EG ::
> $ftp->("$html_code","newfile.html"); # where $html_code actually
> holds html code instead of a filename or filehandle

It's been a long time Dan, but I think it goes something like this:

    use Net::FTP;

    my $ftp = new Net::FTP ('ftp.domain.com');
    $ftp->login('user', 'password');

    my $stor = $ftp->stor('myfile.txt');
    print $stor "TESTING TESTING TESTING TESTING\n";
    close $stor;

    close $ftp;

HTH,

Rob






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to