Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Keep It Simple, Stupid
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.