http://www.perlmonks.org?node_id=11130380


in reply to Re^2: Spotting an empty array as argument
in thread Spotting an empty array as argument

Ah, true. That's an annoyance. Well, you can still pass a list or array using &mysay(@arr).

Replies are listed 'Best First'.
Re^4: Spotting an empty array as argument
by choroba (Archbishop) on Mar 26, 2021 at 14:24 UTC
    As it circumvents prototypes, it doesn't use $_ when no arguments are specified.

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