in reply to Re^2: Infinite Loop Question
in thread Infinite Loop Question
What happens if $ftp->get fails? You may want to check whether you get a valid return value e.g.foreach my $fileToGet (@matches) { ...
$ftpReturnVar = $ftp->get($fileToGet, $localFileName); defined $ftpReturnVar or next;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Infinite Loop Question
by joeymac (Acolyte) on Nov 09, 2011 at 19:44 UTC |