Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Why get() and set() accessor methods are evil

by eric256 (Parson)
on Nov 25, 2003 at 17:19 UTC ( #309962=note: print w/replies, xml ) Need Help??


in reply to Why get() and set() accessor methods are evil

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) :)


___________
Eric Hodges

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://309962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-01-23 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?