Skip Menu |

This queue is for tickets about the Net-FTPSSL CPAN distribution.

Report information
The Basics
Id: 120621
Status: resolved
Priority: 0/
Queue: Net-FTPSSL

People
Owner: Nobody in particular
Requestors: cmanley [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 0.36



Subject: Support for IO::Handle objects in 2nd parameter of get() and xget()
The Net::FTP module supports IO::Handle objects as 2nd parameter in the get() method, but the Net::FTPSSL doesn't. This is because Net::FTPSSL checks for a ref and if the ref is a GLOB. The latter check isn't necessary, and if commented out, then Net::FTPSSL works fine. You could choose to either comment the GLOB check out or add an ISA IO::Handle check as well. The IO::Handle objects I use are IO::Compress::Gzip to save to gzipped files. I suspect that the same issue exists when using DebugLogFile but I haven't tried that yet. Thanks
Hi Craig, Sounds like a good enhancement. I'll look into it for the get/put methods. Maybe even for when specifying DebugLogFile after I think about it a bit. Curtis On Tue Mar 14 11:29:06 2017, CMANLEY wrote: Show quoted text
> The Net::FTP module supports IO::Handle objects as 2nd parameter in > the get() method, but the Net::FTPSSL doesn't. This is because > Net::FTPSSL checks for a ref and if the ref is a GLOB. The latter > check isn't necessary, and if commented out, then Net::FTPSSL works > fine. You could choose to either comment the GLOB check out or add an > ISA IO::Handle check as well. > The IO::Handle objects I use are IO::Compress::Gzip to save to gzipped > files. > > I suspect that the same issue exists when using DebugLogFile but I > haven't tried that yet. > > Thanks
Hi Craig, Your request has been implemented. I just uploaded v0.36. It should be ready to download within the hour. Curtis On Tue Mar 14 19:37:28 2017, CLEACH wrote: Show quoted text
> Hi Craig, > > Sounds like a good enhancement. I'll look into it for the get/put > methods. Maybe even for when specifying DebugLogFile after I think > about it a bit. > > Curtis > > On Tue Mar 14 11:29:06 2017, CMANLEY wrote:
> > The Net::FTP module supports IO::Handle objects as 2nd parameter in > > the get() method, but the Net::FTPSSL doesn't. This is because > > Net::FTPSSL checks for a ref and if the ref is a GLOB. The latter > > check isn't necessary, and if commented out, then Net::FTPSSL works > > fine. You could choose to either comment the GLOB check out or add an > > ISA IO::Handle check as well. > > The IO::Handle objects I use are IO::Compress::Gzip to save to > > gzipped > > files. > > > > I suspect that the same issue exists when using DebugLogFile but I > > haven't tried that yet. > > > > Thanks