Hi Bas,

when using Net::FTP, I do not open the local file before put-ting.
Try:
        .....
        $ftp->put("myfile.local","remote.filename");
        $ftp->quit;


HTH
Rüdiger


Rüdiger Strohmeier
Email: [EMAIL PROTECTED]

> -----Ursprüngliche Nachricht-----
> Von:  Bas Janssen [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Montag, 29. Mai 2000 07:26
> An:   Perl-Win32-Users Mailing List
> Betreff:      ftp client...put...FileHandle
> 
> Hello all,
> 
> I'm using Net::FTP and try to 'put' a file by a filehandle.
> 
> ( http://search.cpan.org/doc/GBARR/libnet-1.0703/Net/FTP.pm :
> " put ( LOCAL_FILE [, REMOTE_FILE ] ) 
> 
>   Put a file on the remote server. LOCAL_FILE may be a name or a   
> filehandle. If LOCAL_FILE is a filehandle then REMOTE_FILE must be 
> specified. If REMOTE_FILE is not specified then the file will be stored in
> 
> the current directory with the same leafname as LOCAL_FILE " )
> 
> When I try to do the following :
> .....
> open(DUMBO,"<my.file");
> $ftp->put(DUMBO,"remote.filename");
> $ftp->quit;
> close(DUMBO);
> 
> I got the message : 
> Cannot open Local file DUMBO: No such file or directory
> 
> What am I doing wrong ?
> 
> Thanks
> 
> Bas Janssen
> 
> ---
> You are currently subscribed to perl-win32-users as:
> [EMAIL PROTECTED]
> To unsubscribe, forward this message to
>          [EMAIL PROTECTED]
> For non-automated Mailing List support, send email to  
>          [EMAIL PROTECTED]

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to
         [EMAIL PROTECTED]

Reply via email to