Re: Sort multi referenced array/hash

2005-04-24 Thread Lawrence Statton
> Hello, > > I have created a multi-referenced hash /array doing the following: > > my $total; > my $machine; > my $serverdata; > > start of loop > > $serverdata->{$machine}->{day} = $total; > $serverdata->{$machine}->{hour} = $total / 24; > > ...end of loop > > I have a loop that

Re: Sort multi referenced array/hash

2005-04-24 Thread Michael Gale
Hello, I did create a new hash containing the machines and the day value, sorted it and used that sorted hash in my loop to print everything out. Please let me know if there is a better way. Michael Michael Gale wrote: Hello, I have created a multi-referenced hash /array doing the foll

Sort multi referenced array/hash

2005-04-24 Thread Michael Gale
Hello, I have created a multi-referenced hash /array doing the following: my $total; my $machine; my $serverdata; start of loop $serverdata->{$machine}->{day} = $total; $serverdata->{$machine}->{hour} = $total / 24; ...end of loop I have a loop that gets the data for each machine and s