in reply to H of A optimization
Thanks to all those who helped. ++ tomorrow, when I get the votes.my %edgeHash; my @alreadySeen; my %countHash; while(<stdin>){ # Reading data from the inet generator, # making sure the format is correct. if(/^\s*([0-9]+)\s+([0-9]+)\S*$/){ my $a = "$1"; my $b = "$2"; push @{$edgeHash{$a}}, $b if not $alreadySeen[int($b)]++; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re(ALL): Putting it together
by fruiture (Curate) on Aug 30, 2002 at 21:18 UTC | |
by Arien (Pilgrim) on Aug 30, 2002 at 21:30 UTC |