In the spirit of TIMTOWTDI!:
Sort of an implementation of an inline unique sort.#!/usr/bin/perl -w use strict; ues Tie::File; my @ry=(); tie @ry,"Tie::File","a.txt" or die $!; my %een=(); @ry = grep !$een{$_}++,sort @ry; untie @ry;
HTH
In reply to Re: 'sort -u' in perl
by blue_cowdawg
in thread 'sort -u' in perl
by sanPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |