DEV Community


Discussion on: Better Perl with subroutine signatures and type validation

jsf116 profile image
jsf116 • Edited

Thank you for this really interesting article and analysis therein!
However, I am a little bit surprised that you paste a code that cannot be executed.
For instance, the very last example concerning Params::ValidationCompiler cannot work because the declaration of $validator is after the call of foo using this variable.

mjgardner profile image
Mark Gardner Author

You’re right! Thanks, I’ve fixed it.