Perl-Sensitive Sunglasses | |
PerlMonks |
Do values from string exist within array?by Anonymous Monk |
on Sep 30, 2013 at 16:08 UTC ( [id://1056382]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have an array @GrpIDs which looks like this when printed with dumper.
I have a string containing a csv of grpids: $query = "123,567". I want to compare and match. How can I find out if one or more of the values in $query exist within @GrpIDs.
Back to
Seekers of Perl Wisdom
|
|