|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^2: to avoid redundacy in a fileby tadman (Prior) |
| on Jul 15, 2002 at 05:43 UTC ( [id://181727]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
To avoid redundancy in your code, you could do this:
You can do it in one shot, so you might as well. Note that this code eliminates all duplicate lines, not just repeated ones. If you want to just ditch repeats, use this: Thus lines "A A A B B B A A C C" will be "A B A C" not "A B C" as in the previous bit.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||