Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Brief OO question

by zwon (Monsignor)
on Oct 05, 2011 at 11:09 UTC ( #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} }


Comment on Re: Brief OO question
Download Code
Re^2: Brief OO question
by tospo (Friar) 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
Node Status?
node history
Node Type: note [id://929759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2013-05-18 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (395 votes), past polls