in reply to Problem with Net::FTP

Hello,

You didn't actually mention on which operating system this is being run, so to see the environmental variables of the user running the script:

Unix/Linux
at the command line type: env or env | grep FTP_FIREWALL


Windows
on the command line type: set


The Net::FTP documentation state this:
"OPTIONS" are passed in a hash like fashion, using key and value pairs.


So...

use warnings; use strict; use Net::FTP; my $ftp=Net::FTP->new(Host => "ftp.cpan.org", Firewall => "XXXX") or die "Couldnt connect:$@\n"; $ftp->login("anonymous"); $ftp->cwd("/pub/CPAN"); $ftp->get("README.html"); $ftp->close;


That's how I understand the documention at least... :-)

regexes

Replies are listed 'Best First'.
Re^2: Problem with Net::FTP
by cool (Scribe) on Jul 10, 2007 at 13:20 UTC
    Thank you for your time regexes,
    Yes I am using Linux OS, Fedora Core-3.