On Tue, Aug 30, 2022 at 12:24 PM Paul "LeoNerd" Evans < leonerd@leonerd.org.uk> wrote: > > sub f($x, $y = lc($x), $z = substr($y, 0, 5)) { ... } > > Here, it would be easy to say that: > > * min arity is 1 > * max arity is 3 > * parameter names are qw( $x $y $z ) > > but there isn't a simple representation for the defaults. > What about this? sub f(@array) { .... } That's a variadic function and by definition, their arity is not defined. Later, this will impact multi subs/methods. Best, Curtis "Ovid" Poe -- CTO, All Around the World World-class software development and consulting https://allaroundtheworld.fr/Thread Previous | Thread Next