4 ms·
For those who do not wish to read the entire changelog, the two important changes are these: Subroutine Signatures sub foo ($left, $right) { r
by Mithaldu 12y ago
For those who do not wish to read the entire changelog, the two important changes are these:
Subroutine Signatures
sub foo ($left, $right) {
return $left + $right;
}
https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perlsub.pod#Signatures https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perlsu...
Postfix dereferencing
$array_ref->@*;
instead of
@{$array_ref};
https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perldelta.pod#Experimental-Postfix-Dereferencing https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perlde...
- LoonyPandora 12y agoImportant to note that postfix dereferencing is experimental, and does not replace the existing method of dereferencing. Also, I think the deprecation of core CGI.pm is pretty major. For now it just issues a deprecation warning, but will be removed totally from core in future versions, only being available via the CPAN. https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perldelta.pod#Module-removals https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perlde...
- sigzero 12y agoI think moving CGI.pm out is major but good!
- ape4 12y agoSorry if this is a dumb question. How do you do CGI now?
- Mithaldu 12y agoYou install one of the many modules from CPAN, i.e. Plack, Dancer, Mojolicious, CGI. The only change is that an old module that has way too much badly implemented functionality has been set on the path towards removal from the default Perl installation.
- jevinskie 12y agocpan install CGI