Keep It Simple, Stupid | |
PerlMonks |
Re: How do I find the array element directly preceeding a 'match'?by amelinda (Friar) |
on Oct 13, 2000 at 03:30 UTC ( [id://36535]=note: print w/replies, xml ) | Need Help?? |
Try this:
where $last holds the "preceeding list element" of the current item and $found holds the "preceeding list element" of the item that matches.
In Section
Seekers of Perl Wisdom
|
|