>
> 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:
So that's how I'd use stor, I was a little mystified by some of that in the cpan page.
I'll look a bit closer and check perldoc a bit more now that I have a more targeted
viwing area.
Thanks!
Dan
>
> 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]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]