Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Brief OO question

by zwon (Abbot)
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} }

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929759]
[shmem]: karlgoethebier: here abouts people are sitting in big tents, gulp beer and ingest badly scorched chicken and sausages while (not) listening to afwul musik
[shmem]: *awful
[choroba]: panem et circenses
[karlgoethebier]: shmem: Yes. I didn't go to the firefighters party just 500 yards from my home this year...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-05-25 12:47 GMT
Find Nodes?
    Voting Booth?