Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Spotting an empty array as argumentby Discipulus (Canon) |
on Mar 25, 2021 at 20:07 UTC ( [id://11130335]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|