Karger78 has asked for the wisdom of the Perl Monks concerning the following question:
##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); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Faster Method for check function.
by Limbic~Region (Chancellor) on Jun 16, 2009 at 13:33 UTC | |
Re: Faster Method for check function.
by rovf (Priest) on Jun 16, 2009 at 13:40 UTC | |
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 | |
Re: Faster Method for check function.
by ikegami (Patriarch) on Jun 16, 2009 at 13:50 UTC | |
by rovf (Priest) on Jun 16, 2009 at 14:13 UTC | |
by ikegami (Patriarch) on Jun 16, 2009 at 14:43 UTC | |
Re: Faster Method for check function.
by Utilitarian (Vicar) on Jun 16, 2009 at 13:36 UTC |