in reply to How to extract from the array...exemple txt file:
^_^#!/usr/bin/perl -naF/,/ $seen{$F[3]}->{$F[4]}++ if defined $F[3] and defined $F[4]; END { while(($k,$v) = each %seen) { print "$k has accessed $k2 $v2 tim +es.\n" while ($k2,$v2) = each %$v } }
____________#!/usr/bin/perl -naF/,/ $seen{"@F[4,3]"}++;END{@u;print"@u has accessed $s $t times.\n"while($ +_,$t)=each%seen,($s,@u)=split}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to extract from the array...exemple txt file:
by mt2k (Hermit) on May 22, 2002 at 00:38 UTC |