in reply to Spotting an empty array as argument

How about this?

sub mysay (_) { print "$_\n" for @_ }

Replies are listed 'Best First'.
Re^2: Spotting an empty array as argument
by choroba (Cardinal) on Mar 26, 2021 at 12:09 UTC
    Try my test here.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^2: Spotting an empty array as argument
by LanX (Saint) on Mar 26, 2021 at 12:22 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]