in reply to OO Simple THing
and you have to call it like:# untested sub new { my $class= shift; my %args = @_; my $self = {map { ("_$_" => $args{$_}) } qw(roundnum room judge type code contestants)}; bless $self, $class; }
update: and it's more common to use classnames
with a first uppercase letter, just to distinguish it from pragmas (like strict, warnings, less etc.)
also a good starter for programming oo-perl is one of the perldoc pages, like
perlboot, perltoot etc.
|
|---|