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;
In reply to Re^3: Infinite Loop Question
by mrstlee
in thread Infinite Loop Question
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |