Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Accessing FTP server using Net::FTP with any username and password

by derby (Abbot)
on Apr 18, 2013 at 13:51 UTC ( [id://1029358]=note: print w/replies, xml ) Need Help??


in reply to Accessing FTP server using Net::FTP with any username and password

It's been a while since I've dealt with Net::FTP but from what I recall, the login method does not raise an exception, you need to do that.

eval { $ftp = Net::FTP->new( $in, Debug => 0 ); $ftp->login( $username, $password ) or die "Cannot login ", $ftp->message; }; if( ! ( $@ ) ) { print ... }
-derby
  • Comment on Re: Accessing FTP server using Net::FTP with any username and password
  • Download Code

Replies are listed 'Best First'.
Re^2: Accessing FTP server using Net::FTP with any username and password
by vin.hephaistion (Initiate) on Apr 23, 2013 at 05:08 UTC

    It worked!!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-16 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found