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

Yours will only allow one scalar argument and see Re^4: Spotting an empty array as argument (prototype _ ) for context :/

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^2: Spotting an empty array as argument

Replies are listed 'Best First'.
Re^3: Spotting an empty array as argument
by tobyink (Canon) on Mar 26, 2021 at 13:13 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]