Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by derby (Abbot)
on Apr 18, 2013 at 13:51 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-05-29 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?