and call that assub push_x { my $self = shift; push @{$self->{x}},@_; # ^^^^^^^^^^ or whatever the internal representation is }
$object->push_x($new_value);
In reply to Re: implementing 'push' in Class:MakeMethods
by Joost
in thread implementing 'push' in Class:MakeMethods
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |