Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Problem with new failing within Net::FTP

by pileswasp (Monk)
on Feb 23, 2001 at 20:59 UTC ( [id://60500]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://60500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-26 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found