what are you doing?!?!? shouldn't it be:
for my $hewArray (keys %hashStats)
{
print "@$hewArray @$hashStats{$hewArray} \n";
}
-----Original Message-----
From: Hewlett Pickens [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 3:16 PM
To: Balint, Jess
Cc: zPerl Beginners
Subject: RE: How Decompose Hash of Arrays
That was one of the tries I'd made but not included in my initial post.
---------------------
print "HewTrace004 - from 1st for block at top of PP pg 277 \n";
my @hewArray;
for $hewArray (keys %hashStats)
{
print "$hewArray @{ $hashStats{$hewArray}} \n";
}
Global symbol "$hewArray" requires explicit package name at hewtest.pl line
24.
Execution of hewtest.pl aborted due to compilation errors.
(Line 24 is the print statement.
----------
Changed to:
for my $hewArray (keys %hashStats)
{
print "$hewArray: @{ $hashStats{$hewArray}} \n";
}
and got
Can't use string ("ARRAY(0x4a68d4)") as an ARRAY ref while "strict refs" in
use
at hewtest.pl line 25.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]