- perl (>= 5.36.0-6)
- perlapi-5.36.0
- libc6 (>= 2.17)
- libxs-parse-sublike-perl (>= 0.15)
Syntax::Keyword::MultiSub provides a new keyword, multi, to put before
subroutine declarations, which permits multiple distinct function bodies to
be provided, which take different parameters. A call to a multi sub will
invoke whichever function body best fits the arguments passed.
.
Currently this module can only make dispatching decisions based on the number
of arguments as compared to the number of signature parameters each body was
expecting. It requires perl version 5.26 or above, in order to get enough
support from signatures. Note also enabling this module does not enable the
signatures feature; you must do that independently.
Installed Size: 98.3 kB
Architectures: arm64 amd64