Re:Perl, the first postmodern computer language (1999)
by matthewpersico on Thursday May 05, 2022 @09:08AM
(#31272817)
And I believe that with the next release, a simple
use v5.36;
will enable the feature.
Re:Perl, the first postmodern computer language (1999)
by bmn__ on Wednesday May 04, 2022 @03:53PM
(#31264991)
This already was available more than ten years ago, you simply had to install a module.
Re:Perl, the first postmodern computer language (1999)
by ecef9-8c0f-4374 on Wednesday May 04, 2022 @04:23PM
(#31265353)
I used to use perl5i for scripting, which had func().
Point is. As soon as I tell someone "you have to use tarball/cpan/cpanplus/cpanminus to install the feature "named parameters" they leave.
But now it's here
Now you can write.
use v5.20; use feature 'signatures';
sub print_text( $param1 , $language = "perl", $years = 10 ) { say "I would have loved this $language $param1 more then $years years ago"; }
print_text "feature"