[Israel.pm] order on hash

Gaal Yahas gaal at forum2.org
Wed Mar 30 08:06:24 PDT 2011


Don't rely on the order.

On Wed, Mar 30, 2011 at 4:59 PM, Chanan Berler <bc.other at gmail.com> wrote:

> Hello All,
>
> I have 2 different Linux machines (same OS version / same Perl version):
> (assuming there are least 200 keys/values - same keys/values on both
> machines)
> I wonder if i do
> foreach (keys $myHash)
> {
> print $_=$myHash{$_};
> }
>
> will it print the same on both machines ? will the order be exactly the
> same ?
> friend of mine, says it's same B-Tree algorithm on both machines,
> since it's same Perl version.
> What do you think ?
>
> thanks
> Chanan
>
>
> --
> ===================
> ----     Chanan Berler    ----
> ===================
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl




-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20110330/ddeabeae/attachment.htm 


More information about the Perl mailing list