|
|
| XP is just a number | |
| PerlMonks |
parentheses missing in actionby Anonymous Monk |
| on Apr 28, 2026 at 18:15 UTC ( [id://11167649]=perlquestion: print w/replies, xml ) | Need Help?? |
|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm using autodie so this seemed reasonable:
open my $pipe, $cmds;But perl warns: Parentheses missing around "my" list at ... It works but it warns and I know why. All of the following work too and silence the warning: open (my $pipe, $cmds); open my ($pipe), $cmds; open my $pipe, ($cmds);
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||