in reply to Re: How do I get to this 'simple' helper?
in thread How do I get to this 'simple' helper?
if (@_) { \$self->{$_} = shift; }
Arrays get interpolated too, so I think the code above – and likewise in OPed code – should be (note \@_ vice @_):
if (\@_) { \$self->{$_} = shift; }
|
|---|