Bas Janssen wrote:
> 
> 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 ?

Either use the filename and don't bother opening it or try a FH reference.
I believe it expects a ref rather than a scalar.  The docs are incorrect/non-specific 
on the matter, but the code checks for a ref.

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.wgn.net/~dbe/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED]   http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/

---
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