in reply to Python OO v Moose
package OurClass; =pod =cut use Moose; has arg1 => (is => 'rw'); has arg2 => (is => 'rw'); sub printargs { my $self = shift; say $self->$_ for qw/arg1 arg2/; } no Moose;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Python OO v Moose
by Ea (Chaplain) on Feb 06, 2013 at 12:33 UTC | |
by tobyink (Canon) on Feb 06, 2013 at 13:09 UTC |