in reply to Foreach Problem! Help!!!

If you iterate through a hash as if it were a list, you'll get all the keys AND all the values. Normally, you iterate through a list of keys, OR a list of values, but not both. I think you mean something more like the following.
for my $var (keys %hash) { ... }

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: Foreach Problem! Help!!!
by Anonymous Monk on May 25, 2004 at 15:27 UTC
    It still ignores the ORDER BY at the end, and it doesn't return the values in alphabetic order. It is frustrating...