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

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
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]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2015-11-25 08:36 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (672 votes), past polls