http://www.perlmonks.org?node_id=929759


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.