On Tue, Apr 12, 2005 at 06:33:34PM +0530, Ramanathan Mullainathan wrote: > Hi Michael, > > Thanks for you reply. > > But the same program works on other perl interpreter. > > Thanks > Ram.M >
Prior versions of Perl did return the output of hashes in a predictable order. This was completely changed as of Perl 5.8.1. For full details, please see http://search.cpan.org/~rgarcia/perl-5.9.2/pod/perl581delta.pod#Hash_Randomisation As it mentions there, the order of hash keys has never been guaranteed, so if a script depended on a consistant ordering from a hash, it was relying on undocumented behavior.