Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
thankswhile (<>){ # take file with duplicate lines chomp $_; /(\d+)$/; push @array, $1; } my %uniques; foreach my $key(@array){ $uniques{$key}++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print a hash
by reneeb (Chaplain) on Jan 20, 2005 at 09:53 UTC | |
|
Re: print a hash
by holli (Abbot) on Jan 20, 2005 at 10:05 UTC | |
by Anonymous Monk on Jan 20, 2005 at 10:12 UTC | |
|
Re: print a hash
by prasadbabu (Prior) on Jan 20, 2005 at 09:57 UTC | |
|
Re: print a hash
by Random_Walk (Prior) on Jan 20, 2005 at 14:13 UTC | |
|
Re: print a hash
by Roy Johnson (Monsignor) on Jan 20, 2005 at 16:20 UTC |