Do you know where your variables are? | |
PerlMonks |
Re: Making a matchby perlplexer (Hermit) |
on Apr 12, 2003 at 13:35 UTC ( [id://250053]=note: print w/replies, xml ) | Need Help?? |
How often does this need to be executed? If you only need to perform the check once, use grep(), as the Anonymous Monk already suggested. If, however, the check needs to be performed multiple times, say, in a loop, you'll be better off putting those numbers in a hash and then using exists(); e.g., --perlplexer
In Section
Seekers of Perl Wisdom
|
|