|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Why parens?by choroba (Prior) |
| on Feb 07, 2013 at 17:21 UTC ( #1017703=note: print w/ replies, xml ) | Need Help?? |
|
If the declaration is not followed by an assignment, it is purely (un)aesthetic. If there is an assignment, the difference is important - the parentheses introduce list context on the rvalue. For example: Output:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||