in reply to Re: How can I retrieve a file from a UNIX server using Perl on a Windows NT client?
in thread How can I retrieve a file from a UNIX server using Perl on a Windows NT client?

I have pretty much the same code---However I get a

can't call method "login" on an undefined value at ftp.pl line (number of line login is)

error when I try to execute the script. I used the same script with different variables on a unix host, and it worked fine, however it won't work on NT.

  • Comment on Re: Answer: How can I retrieve a file from a UNIX server using Perl on a Windows NT client?

Replies are listed 'Best First'.
(tye)Re: Answer: How can I retrieve a file from a UNIX server using Perl on a Windows NT client?
by tye (Sage) on Mar 12, 2001 at 03:22 UTC

    Well, you might be able to figure out why it is failing if chromatic hadn't left out all error checking. Bad, bad chromatic. No biscuit! (Of course it doesn't help that the Net::FTP docs are just as bad... Bad, bad Graham. No biscuit!)

    $ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Can't create Net::FTP object: $@\n";
            - tye (but my friends call me "Tye")