"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]