in reply to Ambiguous '~~' in 'print scalar ~~list'
print {$A} ~~@_; [download]
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.