in reply to At each change in...
open it with:open my $fh => "file" or die $!;
open my $fh => "sort -mu file |" or die $!;
No counter needed, no check, no keeping track of the previous. Ultimate code reuse.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: At each change in...
by stefp (Vicar) on Jun 13, 2002 at 11:41 UTC | |
by Abigail-II (Bishop) on Jun 13, 2002 at 11:55 UTC | |
by stefp (Vicar) on Jun 13, 2002 at 13:33 UTC | |
|
Re: Re: At each change in...
by ariels (Curate) on Jun 13, 2002 at 12:26 UTC | |
by Abigail-II (Bishop) on Jun 13, 2002 at 12:39 UTC |