Hi group, I'm troubleshooting a perl 5.6 Win32 app that uses Net::FTP. I am trying to ftp using a file handle instead of a local file name.
POD says something like $ftp->put(LOCAL_FILE [REMOTE_FILE]) where LOCAL_FILE may be a file name or a file handle. I know $filename does exist, I can see it! This works: $ftp->put( $filename, $somename) ; But this fails with "Cannot open local file HANDLE: No such file or directory" open( HANDLE, "< $filename"); $ftp->put( HANDLE, $somename); open() does open the file. fileno() says a descriptor is assigned. The error is thrown by put(), specifically IO::Handle. Can someone tell me what I am doing wrong?? Thanks, Sturdy