Thanks, so this feature should be available for any Perl on version 5.20 or higher?
Correct. You'll need to use feature 'signatures'; and disable the warnings, as described here: effectiveperlprogramming.com/2015/...
use feature 'signatures';
In Perl 7, to my knowledge, signatures will be standard and will generate no warnings.
If you're using Perl::Critic, you'll also want to no critic for prototypes, too.
Perl::Critic
no critic
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks, so this feature should be available for any Perl on version 5.20 or higher?
Correct. You'll need to
use feature 'signatures';
and disable the warnings, as described here: effectiveperlprogramming.com/2015/...In Perl 7, to my knowledge, signatures will be standard and will generate no warnings.
If you're using
Perl::Critic
, you'll also want tono critic
for prototypes, too.