Hi, I have a hash with this structure:
$users = {
$user => {
'id' => $idno,
'address' => $address,
'job' => $job,
}
}
id is a number.
(note: i simply wrote this to show the structure here, syntax errors in it are possible, it doesn't exist in the actual code).
What i want to do is loop through the hash with a foreach and display the users in decending id number order, but am not sure of how to go about it.
Thanks in advance, i'm not sure if i've included everything useful to this, so say if you need more information.
$users = {
$user => {
'id' => $idno,
'address' => $address,
'job' => $job,
}
}
id is a number.
(note: i simply wrote this to show the structure here, syntax errors in it are possible, it doesn't exist in the actual code).
What i want to do is loop through the hash with a foreach and display the users in decending id number order, but am not sure of how to go about it.
Thanks in advance, i'm not sure if i've included everything useful to this, so say if you need more information.