Article View: pl.comp.lang.perl
Article #39836Order of accessing Hash Elements >
From: sriram
Date: Sat, 23 Oct 2004 23:47
Date: Sat, 23 Oct 2004 23:47
13 lines
1139 bytes
1139 bytes
Iam a newbie to perl, I have a Hash and filled the elements of the
hash with some values.
If i want to retrieve the elements of the hash in the same order at
which they were inserted what should i do ?
my %myHash = {};
$myHash->{'num1'} = 1;
$myHash->{'num2'} = 2;
$myHash->{'num3'} = 3;
I will be happy if somebody can rep. back with some information.
Technical Details
Message-ID:
<e216ebb5.0410231547.7188d5d5@posting.google.com>Path:
mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!postnews1.google.com!not-for-mail From: hunk_007_27@yahoo.com (sriram) Newsgroups: pl.comp.lang.perl Subject: Order of accessing Hash Elements > Date: 23 Oct 2004 16:47:30 -0700 Organization: http://groups.google.com Lines: 13 Message-ID: <e216ebb5.0410231547.7188d5d5@posting.google.com> NNTP-Posting-Host: 68.39.54.192 X-Trace: posting.google.com 1098575250 26631 127.0.0.1 (23 Oct 2004 23:47:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 23 Oct 2004 23:47:30 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit