Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Spotting an empty array as argument

by Discipulus (Canon)
on Mar 25, 2021 at 20:07 UTC ( [id://11130335]=note: print w/replies, xml ) Need Help??


in reply to Spotting an empty array as argument

Hello Chuma,

> how can I distinguish between the two cases – no argument, or an empty array?

I bet you cant, because in a sub you receive arguments into @_ and no arguments is/means an empty array.

Outside a sub it will be another story..

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found