in reply to Problem with new failing within Net::FTP

Hiya, I've got perl 5.004_05 running under RedHat Linux with Net::FTP.pm VERSION = "2.55"; and IO::Socket.pm VERSION = "1.1603"; and I get exactly the same thing.

There's a very quick and easy way to solve your problem:

Change the 'a' in the type() function to 'A'.

Net::FTP::_dataconn sets $pkg = 'Net::FTP::' . $ftp->type; but type never gets specified as uppercase.

The script needs to look for a /<lib>/Net/FTP/A.pm rather than a /<lib>/Net/FTP/a.pm

I don't know if this has been fixed in any later versions...?

Replies are listed 'Best First'.
Re: Re: Problem with new failing within Net::FTP
by zigster (Hermit) on Feb 23, 2001 at 21:58 UTC
    Once again the monks come good ;-) Thanks dude that is a spot on fix.
    --

    Zigster
      I flagged this with Graham Barr (the author of Net::FTP). Although in the pod the ascii, binary, etc functions are only listed as synonyms for type, they are, in fact, the 'correct' ways to set the mode. As such,
      $ftp_session->ascii;
      Is the method he recommends to use.