in reply to Faster Method for check function.
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); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Faster Method for check function.
by Karger78 (Beadle) on Jun 16, 2009 at 13:45 UTC | |
by rovf (Priest) on Jun 16, 2009 at 14:10 UTC | |
by Transient (Hermit) on Jun 16, 2009 at 14:28 UTC |