But this requires somemethod to return an array reference, not a list. If x_array does that, you're all set.push @{$object->somemethod()}, $new_value;
In reply to Re: implementing 'push' in Class:MakeMethods
by Errto
in thread implementing 'push' in Class:MakeMethods
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |