Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by eric256 (Parson)
on Nov 25, 2003 at 17:19 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found