So, what's your real problem?my @uploads = qw(foo.zip bar.zip.meta); foreach my $count (0, 1) { if($uploads[$count] =~ m/zip$/i) #/.*(zip)/ { print "I GOT A ZIP\n"; }else{ print "I got NADA\n" } if($uploads[$count] =~ /.*(meta)/){ print "I GOT A META\n" }else{ print "I got NADA\n" } } __END__ I GOT A ZIP I got NADA I got NADA I GOT A META
In reply to Re: Regex for zip files.
by JavaFan
in thread Regex for zip files.
by Karger78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |