Think about Loose Coupling | |
PerlMonks |
Re: Find duplicate elements from an arrayby PeterPeiGuo (Hermit) |
on Nov 22, 2010 at 02:36 UTC ( [id://872865]=note: print w/replies, xml ) | Need Help?? |
You have to show effort. Here is some tips: Hash is perfect in this case. Use the "entry" as the key, and put the page numbers in an array. So we are talking about a hash of arrays here. Traverse through the file line by line, and use a simple regex to separate 'entry" from the page number. Peter (Guo) Pei
In Section
Seekers of Perl Wisdom
|
|