in reply to Re^2: Too much SQL not enough perl
in thread Too much SQL not enough perl
my @candidates = qw(z y a b c a d a e a f); foreach my $question ('a', 'm') { if (do{{;grep {$_ eq $question ? do {print "Match\n"; last} : 0 } @candidates}}) { print "Found $question\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Too much SQL not enough perl
by Aristotle (Chancellor) on Oct 10, 2005 at 14:48 UTC | |
by Roy Johnson (Monsignor) on Oct 10, 2005 at 14:58 UTC | |
by Aristotle (Chancellor) on Oct 10, 2005 at 15:24 UTC |