Thanks, that's my favorite solution for the semipredicate problem. :)
But in this particular case, I'd say checking @_ is better.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^5: Distinguish between missing and undefined arguments with subroutine signatures (semipredicate problem)
by LanX
in thread Distinguish between missing and undefined arguments with subroutine signatures
by jo37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |