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
Domain Nodelet?
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 contemplating the Monastery: (5)
As of 2022-08-18 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?