in reply to Python OO v Moose
There should be some =pod in the Perl code to pair with the docstrings. Also, use ASCII single quotes ' (or nothing before the fat comma):
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 |
In Section
Meditations