Re: solved: Net::FTP ALLO --- and how to advise functions in perl

2016-08-20 Thread Chas. Owens
I don't think the specific technique is discussed in perldoc (all of the parts are there, you just have to put them together), but I do think it is discussed in the Perl Cookbook and probably Programming Perl. Stuff about the how Perl handles symbol tables is covered in perldoc perlmod http://pe

solved: Net::FTP ALLO --- and how to advise functions in perl

2016-08-20 Thread hw
Chas. Owens schrieb: If you want to get rid of ALLO completely, it looks like you just need to monkeypatch Net::FTP::_ALLO to return 1: use Net::FTP; BEGIN { no warnings "redefine"; *Net::FTP::_ALLO = sub { 1 }; } This replaces the _ALLO method of Net::FTP with a new method that just

Re: Net::FTP ALLO --- and how to advise functions in perl

2016-08-19 Thread Chas. Owens
If you want to get rid of ALLO completely, it looks like you just need to monkeypatch Net::FTP::_ALLO to return 1: use Net::FTP; BEGIN { no warnings "redefine"; *Net::FTP::_ALLO = sub { 1 }; } This replaces the _ALLO method of Net::FTP with a new method that just returns 1. I set it up l

Re: Net::FTP ALLO --- and how to advise functions in perl

2016-08-19 Thread hw
Chas. Owens schrieb: Based on a cursory reading of the perldoc, it looks like the ALLO command is only sent if you call the Net::FTP::alloc method. If you aren't calling it, can you provide a toy test case for us where the code sends ALLO. I will try to debug why it is sending a command you

Re: Net::FTP ALLO

2016-08-19 Thread Chas. Owens
Based on a cursory reading of the perldoc, it looks like the ALLO command is only sent if you call the Net::FTP::alloc method. If you aren't calling it, can you provide a toy test case for us where the code sends ALLO. I will try to debug why it is sending a command you aren't asking for. If you

Net::FTP ALLO

2016-08-19 Thread hw
Hi, is there some way to prevent Net::FTP from using the ALLO command or to make it ignore failures when this command is used? I have to deal with ftp servers that do not understand the ALLO command. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beg