in reply to Re: file not found with OPEN (reafactor)
in thread file not found with OPEN
Why? coping with scoping explainsmy $ftp = ftpsignin();; sub ftpsignin { use Net::FTP; my $ftp = Net::FTP->new( "ftp.sec.gov", Debug => 0, Passive => 1 ) or die "Cannot connect to some.host.name: $@"; $ftp->login( "anonymous", '-anonymous@' ) or next; #die "Cannot login ", $ftp->message; $ftp->binary(); # set binary mode return $ftp; ### RETURN VALUE } ## end sub ftpsignin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: file not found with OPEN (scope)
by wrkrbeee (Scribe) on Jan 06, 2015 at 21:02 UTC | |
by Laurent_R (Canon) on Jan 06, 2015 at 21:45 UTC | |
by Anonymous Monk on Jan 06, 2015 at 21:13 UTC |