XP is just a number | |
PerlMonks |
Re: Compare two arraysby johngg (Canon) |
on Apr 02, 2009 at 11:44 UTC ( [id://754919]=note: print w/replies, xml ) | Need Help?? |
I may be missing something but if the last line of your desired output is this1 belongs to h8this13 then it seems logical that you would also have this2 belongs to h5this21 and this2 belongs to h6this23. Anchoring the match to the end of the string drops your last desired line. Perhaps you could clarify your requirement.
The output
I hope this is of interest. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|