Re: Hash Questions

2002-02-04 Thread Carl Jolley
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

Re: Hash Questions

2002-02-04 Thread Edward G. Orton
- 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: >

RE: Hash Questions

2002-02-04 Thread Morse, Richard E.
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: >

Re: Hash Questions

2002-02-04 Thread Jeffrey
--- 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. =

RE: Hash Questions

2002-02-04 Thread Tillman, James
> 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

RE: Hash Questions

2002-02-04 Thread Walter Torres
> 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