in reply to open and list context (?)
Once you get in the habbit of adding parens, you keep adding them (I know I do), even if you switch to 3 argument open which doesn't trigger the bug$ perl -we "$file='X'; open my $fh, $file;" Parentheses missing around "my" list at -e line 1. $ perl -we "$file='X'; open my($fh), $file;"
$ perl -we "$file='X'; open my $fh, '<', $file;"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open and list context (?)
by Anonymous Monk on Jun 17, 2011 at 15:04 UTC |