Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Class::Accessor attributes

by perldiverx (Beadle)
on Mar 07, 2014 at 13:52 UTC ( #1077384=note: print w/ replies, xml ) Need Help??

in reply to Re: Class::Accessor attributes
in thread Class::Accessor attributes

I thought about that when I created this initially, however the documentation on CPAN tells me to replace  @ISA = qw /Foo Bar/; with extends qw(/Foo Bar/);
Even when I change this to your recommendation the script still warns that it cannot locate the package.

Comment on Re^2: Class::Accessor attributes
Select or Download Code
Replies are listed 'Best First'.
Re^3: Class::Accessor attributes
by McA (Priest) on Mar 07, 2014 at 13:56 UTC

    Do you have a package called transaction_type? There must be something like somewhere in your INC path.


      No package by that name. transaction_type is an attribute of my object. Hence:
      has transaction_type => { is => 'rw', };

        I think there is a misunderstanding on your side. What do you think does the line


        for you? What do you expect?

        The line says that the class/package 'Monro::CC' is inheriting from class/package 'transaction_type'. But I assume you don't want this.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1077384]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-11-28 15:47 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls