Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Re: Finding largest common subset in lists?by broquaint (Abbot) |
on Jun 05, 2003 at 12:58 UTC ( [id://263304]=note: print w/replies, xml ) | Need Help?? |
The output is due to the fact that 'b' is repeated in @b so the offset in %map is for the second 'b'. I think I'll leave the code as it is for the time being and just add a caveat that it won't work when there are duplicates in @b. Thanks once again :)
_________
In Section
Seekers of Perl Wisdom
|
|