On Mon, 4 Feb 2002, Jeffrey wrote:
>
> --- Carl Jolley <[EMAIL PROTECTED]> wrote:
> > Try this:
> >
> > for $key (wq(first_name last_name address
> > transportation)) {
> > print "$reqfields{$key\n";
> > }
>
> Closing } on $key in the print statement aside, what
> exactly does this do? I can't
- Original Message -
From: "Jeffrey" <[EMAIL PROTECTED]>
To: "Carl Jolley" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 2:44 PM
Subject: Re: Hash Questions
>
> --- Carl Jolley <[EMAIL PROTECTED]> wrote:
>
I imagine that that was meant to be qw...
HTH,
Ricky
-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: Monday 04 February 2002 2:45 PM
To: Carl Jolley; [EMAIL PROTECTED]
Subject: Re: Hash Questions
--- Carl Jolley <[EMAIL PROTECTED]> wrote:
> Try this:
>
--- Carl Jolley <[EMAIL PROTECTED]> wrote:
> Try this:
>
> for $key (wq(first_name last_name address
> transportation)) {
> print "$reqfields{$key\n";
> }
Closing } on $key in the print statement aside, what
exactly does this do? I can't find reference to wq anywhere.
=
> 1) you can not determine the order of elements in a hash table.
>
> 2) Perl does not sort its hash tables.
>
> 3) Carl's solution to this issue is exactly what I use to pull out
>data from a hash in a particular order.
>
Then again, just because Perl doesn't maintain hash key order by de
> Hello,
>
> I have defined a hash in a specific order. When I print the hash elements,
> the hash become unsorted and prints the elements out of my original order.
>
> Is there any way to restrict the hash from internally sorting the
elements?
1) you can not determine the order of elements in