I can use functions to work with them. If I'd like to treat them like objects I've to change them into objectsFirst, you want to use an array as an object. You define an array class. Then you use the 'functional' interface again, which makes it ugly. Why not define a push method and call that?Especially to handle the object as reference to the Array looks odd (of course it's nothing else than an blessed arrayref).... push @$obj, qw ( 12 19 35 37 48 98 25 ); ...
The way you're doing it now is a bit halfhearted.$obj->push(qw ( 12 19 35 37 48 98 25 ));
Arjen
In reply to Re: Functions to Methods
by Aragorn
in thread Functions to Methods
by neniro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |