Typo on CPAN docs?

[prev] [thread] [next] [Date index for 2004/11/27]

From: Nathan L. Kugland
Subject: Typo on CPAN docs?
Date: 01:51 on 27 Nov 2004
Hi all,

I think I might have found a typo on the CPAN docs. Since I'm new to 
Class::DBI, I want to bounce it off the list.

In this section:
http://search.cpan.org/dist/Class-DBI/lib/Class/DBI.pm#MANY_TO_MANY_RELATIONSHIPS

...there is this example:

Film->table('film');
        Film->columns(All => qw/id title rating/);
        Film->has_many(stars => [ Role => 'actor' ]);

        Actor->table('actor');
        Actor->columns(All => qw/id name/);
        Actor->has_many(films => [ Role => 'film' ]);

Note the lack of quotes around the Role class name. Using this example 
verbatim gave me this:
    Bareword "Role" not allowed while "strict subs" in use ...

Now, a bit higher in the CPAN docs (under Mapping), there is this example:

Music::CD->has_many(styles => [ 'Music::StyleRef' => 'style' ]);

...where the class name is enquoted. It seems that the Many-to-Many 
example class names be similarly enquoted, to be strict-safe. Thoughts?

Cheers,

Nathan

        -- 
        

Nathan L. Kugland
nathan@xxxxxxx.xxx

Typo on CPAN docs?
Nathan L. Kugland 01:51 on 27 Nov 2004

Re: Typo on CPAN docs?
Michael G Schwern 08:53 on 27 Nov 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52