Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Brief OO question

by zwon (Abbot)
on Oct 05, 2011 at 11:09 UTC ( [id://929759]=note: print w/replies, xml ) Need Help??


in reply to Brief OO question

It is matter of taste. I usually write

sub get_it { shift->{it} }

Replies are listed 'Best First'.
Re^2: Brief OO question
by tospo (Hermit) on Oct 06, 2011 at 14:04 UTC
    I also use shift like this if it's a one-liner method, nice and short.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found