in reply to
Functions to Methods
I can use functions to work with them. If I'd like to treat them like objects I've to change them into objects
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 );
First, 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?
$obj->push(qw ( 12 19 35 37 48 98 25 ));
The way you're doing it now is a bit halfhearted.