FWIW there is a school of thought that considers braces around the { $filehandle } a best practice. I use it, inconsistently though–
print $fh, "something\n"; # …becomes… print { $fh }, "something\n"; # …which then tells you… syntax error at -e line 1, near "}," # …so you know to… print { $fh } "something\n";
In reply to Re: lexical vs. local file handles
by Your Mother
in thread lexical vs. local file handles
by jo37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |