Think about Loose Coupling | |
PerlMonks |
Re: How's My Style Now?by juster (Friar) |
on Feb 06, 2010 at 18:54 UTC ( [id://821769]=note: print w/replies, xml ) | Need Help?? |
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'};
In Section
Seekers of Perl Wisdom
|
|