Using curly braces around the filehandle is generally good practice anyway. Makes it clearer that you're printing something to $A instead of printing the contents of $A.
In reply to Re^2: Ambiguous '~~' in 'print scalar ~~list'
by tobyink
in thread Ambiguous '~~' in 'print scalar ~~list'
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |