> 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
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
y. I
commonly use a snippet of code like this when I'm printing hashes:
foreach(sort keys %hash){
print $hash{$_};
}
-Original Message-
From: P. S. Starkey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 2:06 PM
To: [EMAIL PROTECTED]
Subject: associative array not look
I have some perl script (shown below) and I am wondering why the associative
array being built ends up looking like the printout of the array as shown
after the code. I would have assumed the array entries would have been
shown in the same order they are put into the array but that is not
happeni