Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: grep with multiple choiceby citromatik (Curate) |
on Jun 11, 2007 at 12:19 UTC ( [id://620479]=note: print w/replies, xml ) | Need Help?? |
If I understood correctly, you want to provide 2 names (for example, "Julia_Roberts" and "Cintheia"), look if both exist in the array and append the "(1,5)" thing to the second. If this is what you want, an array doesn't seem the best way to manage your data, and maybe a hash could be a better solution: This Outputs:
If it is not what you are trying to do, please be more specific Hope this helps! citromatik
In Section
Seekers of Perl Wisdom
|
|