J
john_pataki
I just updated my perl version to 5.8 from 5.6.1 and with no code
change in the area of my list creation.... but I get a different order
now...
Here is the code I believe to be in question:
my @details = ((basename($fi)),$na,$nu,$ve,$ls,$st);
push @{$LIB_ITEMS{$pr}{$li}{$asm++}},@details;
.... later in my code...
foreach my $asm (keys %{$LIB_ITEMS{$prj}{$lib}}) {
....
}
I know that you cannot rely on a specific order from keys stored in a
hash -- however -- I did get a consistant order one way in 5.6.1 now I
get a consistant yet different order now in 5.8
It appeared that it was alpabetical (for $asm) in 5.6.1. and now
reverse alphabetical in 5.8
? anyone else notice this ?
I can just use a sort command with my keys -- just thought it was odd
that it was different.
John
change in the area of my list creation.... but I get a different order
now...
Here is the code I believe to be in question:
my @details = ((basename($fi)),$na,$nu,$ve,$ls,$st);
push @{$LIB_ITEMS{$pr}{$li}{$asm++}},@details;
.... later in my code...
foreach my $asm (keys %{$LIB_ITEMS{$prj}{$lib}}) {
....
}
I know that you cannot rely on a specific order from keys stored in a
hash -- however -- I did get a consistant order one way in 5.6.1 now I
get a consistant yet different order now in 5.8
It appeared that it was alpabetical (for $asm) in 5.6.1. and now
reverse alphabetical in 5.8
? anyone else notice this ?
I can just use a sort command with my keys -- just thought it was odd
that it was different.
John