aguidrevitch has asked for the wisdom of the Perl Monks concerning the following question:
The Net::FTPServer::InMem::FileHandle is listed in %INC. If I replaceUndefined subroutine &Net::FTPServer::InMem::FileHandle called at /usr +/local/share/perl/5.18.2/Net/FTPServer/InMem/DirHandle.pm line 274, < +STDIN> line 6. at /usr/local/share/perl/5.18.2/Net/FTPServer.pm line 2368, <STDIN> l +ine 6. Net::FTPServer::__ANON__('Undefined subroutine &Net::FTPServer::In +Mem::FileHandle calle...') called at /usr/local/share/perl/5.18.2/Net +/FTPServer/InMem/DirHandle.pm line 274 Net::FTPServer::InMem::DirHandle::list_status('Net::FTPServer::InM +em::DirHandle=HASH(0x2a725a8)', undef) called at /usr/local/share/per +l/5.18.2/Net/FTPServer/DirHandle.pm line 171 Net::FTPServer::DirHandle::_list_status('Net::FTPServer::InMem::Di +rHandle=HASH(0x2a725a8)', undef) called at /usr/local/share/perl/5.18 +.2/Net/FTPServer.pm line 5899 Net::FTPServer::_LIST_command('Net::FTPServer::Opencart=HASH(0x2a3 +8908)', 'LIST', '-la') called at /usr/local/share/perl/5.18.2/Net/FTP +Server.pm line 3004 Net::FTPServer::run('Net::FTPServer::Opencart') called at ./ftp-se +rver.pl line 220
withmy $fileh = new Net::FTPServer::InMem::FileHandle
right in the Net::FTPServer::InMem::DirHandle at line 274, it starts to work. What's wrong ? How can I fix that ?my $fileh = Net::FTPServer::InMem::FileHandle->new
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Constructor fails with Undefined subroutine when called as new Foo()
by haukex (Archbishop) on Feb 12, 2017 at 17:29 UTC | |
|
Re: Constructor fails with Undefined subroutine when called as new Foo()
by choroba (Cardinal) on Feb 12, 2017 at 17:46 UTC | |
by aguidrevitch (Initiate) on Feb 12, 2017 at 21:55 UTC |