Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How do I find the index of a specific array value?by marcussen (Pilgrim) |
on Jul 25, 2008 at 03:16 UTC ( [id://700018]=note: print w/replies, xml ) | Need Help?? |
Using merlyn's example with regular expressions, so you don't need to know the exact value of the element you are matching; Replace ( $index ) with an array to match multiple instances.
In Section
Seekers of Perl Wisdom
|
|