an interesting technique but all it amounts to is testing for the existence of a hash element, which can also be done (perhaps more intuitively) thus:
my %lines; while (<DATA>) { unless (exists($lines{$_})) {print "$_"} $hash{$_}="done"; # element defined }
In reply to Re: Why does this hash remove duplicate lines
by halfcountplus
in thread Why does this hash remove duplicate lines
by kangaroobin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |