water has asked for the wisdom of the Perl Monks concerning the following question:
Anything more elegant than copying out then back in?
Thanks!# untested my @x = $object->x_array(); push(@x, $new_value); $object->x_array(@x)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: implementing 'push' in Class:MakeMethods
by Errto (Vicar) on Apr 28, 2005 at 03:14 UTC | |
|
Re: implementing 'push' in Class:MakeMethods
by YuckFoo (Abbot) on Apr 28, 2005 at 20:20 UTC | |
by water (Deacon) on May 01, 2005 at 16:09 UTC | |
|
Re: implementing 'push' in Class:MakeMethods
by Joost (Canon) on Apr 28, 2005 at 11:27 UTC |