Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Modules to reduce syntax?by hippo (Bishop) |
on Dec 22, 2021 at 09:50 UTC ( [id://11139825]=note: print w/replies, xml ) | Need Help?? |
You can reduce the amount of syntax in the line you provided and it doesn't even require the use of an additional module. The expression $ref->{'foo'}{$bar} is exactly equivalent to $ref->{foo}{$bar} and the latter has the advantage that you don't waste any time pondering why the author has chosen to enclose foo in single quotes like that. 🦛
In Section
Seekers of Perl Wisdom
|
|