Subject: | Order of package and use Class:Std and "Invalid HASH attribute: ATTR" |
Date: | Thu, 27 Jul 2006 13:23:18 +0200 (CEST) |
To: | bug-Class-Std [...] rt.cpan.org |
From: | "Alexander Klink" <a.klink [...] cynops.de> |
Hi,
maybe not exactly a bug, but it might be useful for the diagnostics
section in the documentation. The following fails:
use Class::Std;
package Bla;
my %attr_of :ATTR;
with: Invalid HASH attribute: ATTR at attr.pl line 4
It took me a moment to find out that this happens because package
was inadvertently put below the use Class:Std ...
Greetings,
Alex