in reply to Remove duplicates
You can use uniq from List::MoreUtils. Or, make your own:
Update: Usage line added.sub uniq { my %tmp; undef @tmp{@_}; return keys %tmp; } my (@Category_Link) = uniq($main_page =~ m!<a href="http://www.testsite.co.uk/itm/(.+? +)"!sg);
|
|---|