Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^7: Class::Accessor attributes

by perldiverx (Sexton)
on Mar 07, 2014 at 15:03 UTC ( #1077394=note: print w/ replies, xml ) Need Help??


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

Okay, I think I got this...

What I did was remove all of the extends and all of the Exporter stuff altogether. New code:

package Monro::CC; use strict; use warnings; use Class::Accessor "antlers"; has 'transaction_type' => ( is => 'rw', );

And the script:

#!/usr/bin/perl use strict; use warnings; use Monro::CC; my $trans_obj = Monro::CC->new({ 'transaction_type' => $transaction_info[0], });


Comment on Re^7: Class::Accessor attributes
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-08-23 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls