in reply to Net::FTP.pm Blues

From the synopsis of the Net::FTP man page:
$ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@";

Printing $@ on failure to create a handle should give you a good clue as to what the problem is.

PS -I don't understand the purpose of of your print STDOUT line: if $ftp is not defined, you print its value!

Dave.

Replies are listed 'Best First'.
Re^2: Net::FTP.pm Blues
by jfroebe (Parson) on Sep 28, 2004 at 13:32 UTC

    I'm more partial to using 'warn' instead of 'die'. That way, I can simply check to see if $ftp is undefined and handle it myself:

    just a little Oracle teasing .... ("Jason, you boob, you typed in Oracle instead of Sybase! You don't want to connect to an inferior DBMS do you?"

    Jason L. Froebe

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1