> 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
> convert a string '789' to a floating point number so i can do things like
> multiply it.
print $temp_array[2] * 2; # ;-)
Perl usally trys to DWIM
Do What I Meant.
/Stefan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]