in reply to Re^5: Distinguish between missing and undefined arguments with subroutine signatures (slurpy parameter)
in thread Distinguish between missing and undefined arguments with subroutine signatures
Using a slurpy parameter @settings will solve this and fits much better into your use-case.
Sadly, it does not. I already considered this. It does not prevent the sub from being called with more arguments than allowed.
Greetings,
-jo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Distinguish between missing and undefined arguments with subroutine signatures (semipredicate problem)
by LanX (Saint) on Dec 27, 2020 at 21:21 UTC | |
|
Re^7: Distinguish between missing and undefined arguments with subroutine signatures (methods with signatures?)
by LanX (Saint) on Dec 27, 2020 at 21:39 UTC | |
by jo37 (Curate) on Dec 27, 2020 at 21:53 UTC | |
by LanX (Saint) on Dec 27, 2020 at 21:59 UTC |