Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Spotting an empty array as argument

by tobyink (Canon)
on Mar 26, 2021 at 13:13 UTC ( #11130380=note: print w/replies, xml ) Need Help??


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]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130380]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2021-10-27 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (94 votes). Check out past polls.

    Notices?