Regarding point 4, why are you using that syntax? With recent (at least 10 years old I think) versions of Perl you can just do:
sub func1($x, $y, $z) { // do something with the variables } func1(1, 2, 3);
If for some reason you need to use a very old Perl interpreter, there's still a better solution:
sub func1 { my ($x, $y, $z) = @_; // do something with the variables } func1(1, 2, 3);
Michele.
It was Perl 5.20 that introduced subroutine signatures (in 2014). And they're not widely used, I think, because they're still marked as experimental.
One thing I agree with, is that they likely should be not be marked "experimental" anymore. ;-)
Getting things from experimental to in and from deprecated to out are not tasks that happen in Perl.
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.
Regarding point 4, why are you using that syntax? With recent (at least 10 years old I think) versions of Perl you can just do:
If for some reason you need to use a very old Perl interpreter, there's still a better solution:
Michele.
It was Perl 5.20 that introduced subroutine signatures (in 2014). And they're not widely used, I think, because they're still marked as experimental.
One thing I agree with, is that they likely should be not be marked "experimental" anymore. ;-)
Getting things from experimental to in and from deprecated to out are not tasks that happen in Perl.