and you will get the accessors and the new constructor for free.package Bro::Doug ; use strict ; use warnings ; use base qw(Class::Accessor); __PACKAGE__->mk_ro_accessors( qw(one two three) ); 1;
In reply to Re: declaring accessor methods from a list
by ferreira
in thread declaring accessor methods from a list
by Bro. Doug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |