It's a good thing to learn about in-place editing mode.{ my %seen; local($^I, @ARGV) = ("", $outputfile); while (<>) { next if $seen{$_}++; print; } }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: Is this code logical?
by merlyn
in thread Is this code logical?
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |