Ewen, Ed wrote, on Friday, May 12, 2000 14:54
: if ($list{$key}) {
: # Is date already in hash?
: push (@$list{key}, ($name)); } # Yes - add
: the filename
: else {
:
: $list{$key} = [$name];
: # No
: - add it to the hash with the filename
: }
:
: and I get a compile message : Type of arg1 to push must be an array (not
: hash slice) on line 6.
Looks like it might just be a typo, Ed; You've got "key" as a bareword
instead of "$key". "The worst thing about -w is that it's optional."
And just for fun, I'd lead off with "my $list = {};" just to make sure
that is starts out looking like a hashref.
Joe
==============================================================
Joseph P. Discenza, Sr. Programmer/Analyst
mailto:[EMAIL PROTECTED]
Carleton Inc. http://www.carletoninc.com
219.243.6040 ext. 300 fax: 219.243.6060
Providing Financial Solutions and Compliance for over 30 Years
---
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]