in reply to How's My Style Now?
You don't need to prefix subroutine calls with &. Thats a throwback from perl 4 like 10 years ago? I dunno for sure, sometimes I see it. Its ugly and extra work anyways!.
Nested dereferencing "arrows" (->) can be ommitted. I'm not sure how best to describe it, but here is the before:
my $category = lc($musing_cats->{$ref_id}->{'ref_name'});
After:
my $category = lc $musing_cats->{$ref_id}{'ref_name'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How's My Style Now?
by FunkyMonk (Bishop) on Feb 06, 2010 at 22:23 UTC | |
|
Re^2: How's My Style Now?
by Spenser (Friar) on Feb 08, 2010 at 15:05 UTC | |
|
Re^2: How's My Style Now?
by Anonymous Monk on Feb 08, 2010 at 14:34 UTC | |
by afoken (Chancellor) on Feb 10, 2010 at 05:31 UTC |