- or download this
bless { @_ }, $class;
- or download this
my %hash = @_;
bless(\%hash, $selfObjRef);
- or download this
bless({@_[1..$#_]}, $_[0]);
- or download this
my %phrases = (
"phrase 1" => Qty->new(
...
qty =>1
)
);
- or download this
print $phrases{'phrase 2'}->{'qtySum'};
print $phrases{'phrase 1'}->{'qtyCont'};
print $phrases{'phrase 3'}->{'qty'};
- or download this
my %phrases = (
'phrase 1'=>{
...
qtyTotal=>sub{return &qtyTotal('phrase 3', @_);}
}
);