sub foo($x, ??$has_y, $y = 0) { ... }
Great! That's it. (Or better: Will be)
Greetings,
-jo
In reply to Re^3: Distinguish between missing and undefined arguments with subroutine signatures
by jo37
in thread Distinguish between missing and undefined arguments with subroutine signatures
by jo37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |