perlnoobster has asked for the wisdom of the Perl Monks concerning the following question:
I am fairly new to perl and learning slowly but surely, but can't figure it out please can someone help? Thank youmy (@Category_Link)=$main_page=~m!<a href="http://www.testsite.co.uk/i +tm/(.+?)"!sg; for my $temp_page (@Category_Link) { my @uniq = grep $temp_page{$_}++, @Category_Link; print OUT "http://www.testsite.co.uk/itm/$temp_page\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove duplicates
by marto (Cardinal) on Nov 15, 2012 at 09:20 UTC | |
|
Re: Remove duplicates
by choroba (Cardinal) on Nov 15, 2012 at 09:21 UTC | |
|
Re: Remove duplicates
by Anonymous Monk on Nov 15, 2012 at 09:23 UTC |