perl_mystery has asked for the wisdom of the Perl Monks concerning the following question:
I want to avoid printing duplicates.I have three variables in a print statement like below.For example if the print statment prints " 1 2 3",this pattern should not be printed.Can someone pls suggest how to do it?
print $line, $match, $link, "\n";
If the following pattern gets printed,it should not get printed again
1 2 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to avoid printing duplicates
by Ratazong (Monsignor) on Dec 04, 2010 at 19:52 UTC | |
by Anonymous Monk on Dec 05, 2010 at 03:07 UTC | |
|
Re: How to avoid printing duplicates
by TomDLux (Vicar) on Dec 06, 2010 at 05:14 UTC |