Joseph Paish wrote:
>
> On Thursday 03 April 2003 08:53, Joseph Paish wrote:
> >
> > i have a hash that looks like this :
> >
> > abc => 123 456 789 246 346 8765
> > deh => 123 456 258 246 346 8765
> > nyx => 123 456 149 246 346 8765
> > pob => 123 456 354 246 346 8765
> > syt => 123 456 924 246 3
> foreach my $key (sort keys %last) {
> # %last is the name of the hash ... now it is sorted by key
> my @temp_array = split / /, $last{$key} ;
> print $temp_array[2] ; # prints out the 3rd field
> }
>
> now, how to do math on it? in other words, i guess i am asking how to
On Thursday 03 April 2003 08:53, Joseph Paish wrote:
> i have a hash that looks like this :
>
> abc => 123 456 789 246 346 8765
> deh => 123 456 258 246 346 8765
> nyx => 123 456 149 246 346 8765
> pob => 123 456 354 246 346 8765
> syt => 123 456 924 246 346 8765
>
> already sorted by the key (the