Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-10-22 09:58 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.