in reply to Ambiguous '~~' in 'print scalar ~~list'

As usually, wrapping the filehandle into curly brackets helps:
print {$A} ~~@_;

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Ambiguous '~~' in 'print scalar ~~list'
by tobyink (Canon) on Mar 12, 2019 at 16:16 UTC

    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.