in reply to Net::FTP troubles
and actually I'd scrap the first declaration of $key and make that:foreach $key (keys %Servers){
You'd also do well to check the status of your Net::FTP methods. new() returns undef and an error message in $@ on failure, and the rest will return undef but the error message will be returned fromforeach my $key (keys %Servers){
Update: Though a good catch, this line:
is almost certainly just a typo here since use strict should be complaining about it (generating a "Global symbol requires explicit package name..." error) before the runtime error that RedDog is currently getting (at least I get a compile time error with build 628, if you don't get one with that code, maybe you should upgrade). And I agree with the opinions that if you don't need a hash, don't put the IP's in a hash.$IP="$Server{$key}";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(dmmiller2k): Net::FTP troubles
by dmmiller2k (Chaplain) on Nov 09, 2001 at 19:21 UTC | |
by Fastolfe (Vicar) on Nov 12, 2001 at 21:04 UTC |