in reply to How to increment a sequence number for evert instance of a value?
Use the values ox X as keys in a hash and increment the hash-value
just an example, not working code :)my $x; my %y = (); while( $x = getvaluesofx() ) { $y{$x} += 1; }
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
|
|---|