The missing $ in front of key was a typo, I have it in the program
Ed Ewen
(404) 575-3531
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Ned Konz [SMTP:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 3:30 PM
To: Ewen, Ed
Cc: Perl-Win32-Users Mailing List
Subject: Re: Referencing Question
"Ewen, Ed" wrote:
>
> I must be getting stupid on a Friday afternoon, but this is
driving me
> crazy. I coded this routine:
> if ($list{$key}) { # Is date already in hash?
You should probably say if defined($list{$key}) here
> push (@$list{key}, ($name)); }
Did you mean "$key" or "key" here?
> and I get a compile message : Type of arg1 to push must be an
array (not
> hash slice) on line 6.
> So I tried splitting the line to:
>
> $ref = $list{key};
> push (@$ref, ($name)); }
#
What does it do if you just say
push(@{ $list{$key} }, $name);
--
Ned Konz
currently: Stanwood, WA
email: [EMAIL PROTECTED]
homepage: http://bike-nomad.com, Perl homepage:
http://bike-nomad.com/perl
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]