FTP file handle question
- From: robert.w.sturdevant@xxxxxxxxxxx (Robert W Mr CTR USA AMC Sturdevant)
- Date: Thu, 27 Dec 2007 14:35:59 -0500
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
- Follow-Ups:
- Re: FTP file handle question
- From: John W. Krahn
- Re: FTP file handle question
- Prev by Date: Re: replace chars
- Next by Date: Re: FTP file handle question
- Previous by thread: beginners-help@perl.org
- Next by thread: Re: FTP file handle question
- Index(es):
Relevant Pages
|
|