##If No ZIP we must exit as there is nothing to do. my $uCount; my $zipCheck=0; foreach (@uploads ) { if($uploads[$uCount] =~ /\.zip\z/) { $zipCheck++; } $uCount++; } if($zipCheck == 0) { print "There were no zip files\n"; print "Exiting"; exit(0); }
In reply to Faster Method for check function. by Karger78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |