This queue is for tickets about the Class-Std CPAN distribution.

Report information
The Basics
Id:
20715
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
a.klink [...] cynops.de
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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
Will be in diagnostic section in next release, thanks! On Thu Jul 27 07:24:28 2006, a.klink@cynops.de wrote:
Show quoted text
> 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 >
On Wed Mar 26 00:31:43 2008, DMUEY wrote:
Show quoted text
> Will be in diagnostic section in next release, thanks!
Note to self: also tie into related missing valid return value: multivac:~ dmuey$ cat MyTest.pm package MyTest; use Class::Std; my %foo : ATTR; multivac:~ dmuey$ perl -le 'use MyTest;' Bizarre copy of HASH in leaveeval at -e line 1. BEGIN failed--compilation aborted at -e line 1. multivac:~ dmuey$ w/out Class::Std multivac:~ dmuey$ cat MyTest.pm package MyTest; my %foo : ATTR; multivac:~ dmuey$ perl -le 'use MyTest;' Invalid HASH attribute: ATTR at MyTest.pm line 2 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. multivac:~ dmuey$


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.