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], });
|
|---|