in reply to Re: random behaviour of perl hashes
in thread random behaviour of perl hashes
As lima1 pointed out this behaviour has been deliberately changed as of the perl 5.8.*, I get this with 5.8.1:
but yes it would be a mistake to rely on an any hash ordering behaviour in a programme.[jonathan@orpheus jonathan]$ perl foo.pl potatos diced pepper fresh salt shaken paprika spicy onions diced [jonathan@orpheus jonathan]$ perl foo.pl pepper fresh potatos diced onions diced paprika spicy salt shaken [jonathan@orpheus jonathan]$ perl foo.pl salt shaken paprika spicy onions diced potatos diced pepper fresh
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: random behaviour of perl hashes
by swampyankee (Parson) on Aug 28, 2006 at 20:48 UTC | |
by liz (Monsignor) on Aug 28, 2006 at 20:57 UTC | |
by swampyankee (Parson) on Aug 28, 2006 at 21:13 UTC |