in reply to Is this code logical?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is this code logical?
by blazar (Canon) on Feb 25, 2006 at 09:14 UTC |