in reply to Need a replacement method for older version of perl
use warnings; use strict; my @taxR = ("PLRV1", "PMTVS", "PVXHB"); my %taxRh = map { $_ => 1 } @taxR; my $curEntry = "PMTVS"; if (exists $taxRh{$curEntry}) { print "do rest of stuff"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need a replacement method for older version of perl
by vivomancer (Initiate) on Jun 26, 2012 at 23:25 UTC |