Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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.

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 rats come out to play...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-06-22 11:47 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.