RE: associative array not looking like I thought it would

2002-04-26 Thread David Gray
> This was all written by a vendor and I am trying to learn > PERL to modify what they did. When you say I must print it > explicitly, what exactly do you mean? You have to _sort_ it explicitly. In Timothy's example, he was sorting the hash alphabetically based on the keys. The keys function r

Re: associative array not looking like I thought it would

2002-04-26 Thread P. S. Starkey
Thanks for the info! Here is a code snippet we are using to process the array: sub ViewError( % ) { if( $MAIN::FUNCTION != $MAIN::F_NOTHING ) { if ( $MAIN::SOURCE == $MAIN::S_ERROR || $MAIN::SOURCE == $MAIN::S_BOTH) { $Err207Flag = "N"; ## P. Starkey 10/12/2000

RE: associative array not looking like I thought it would

2002-04-25 Thread Timothy Johnson
That's not the way associative arrays work. They are stored differently. If you want them to be printed in a certain order, then you must do it explicitly. I think it is really better to think of it as a hash instead of an associative array for that reason. Not all of the rules apply. I commo