Shouldn't the example code be...
my $obj = OOtest->new(); foreach my $tmp ( @{ $obj->get_array() } ) { # process list }
update: guess so since you changed it (well you changed them both to get_list) :)
In reply to Re: Why get() and set() accessor methods are evil
by eric256
in thread Why get() and set() accessor methods are evil
by synistar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |