Hmmm... your subject line says "Faster Method", and your posting asks for "less lengthy way", which is not necessarily the same. As for the timing the alternatives, I leave it to you as an exercise. A less lengthy version would be
my $zipCheck=grep /\.zip\z/,@uploads; unless($zipCheck) { ... exit(0); }
In reply to Re: Faster Method for check function.
by rovf
in thread Faster Method for check function.
by Karger78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |