I'm one of those old-school people, so i followed ye olde https://cpan.org/src instructions as usual, e.g.
wget https://www.cpan.org/src/5.0/perl-5.40.0.tar.gz tar -xzf perl-5.40.0.tar.gz cd perl-5.40.0 ./Configure -des -Dprefix=/home/cavac/bin/CavacPerl-5.40.0 make make test make install
And, as usual, everything works out fine on Xubuntu 22.04 LTS with the latest OS updates(*). And now i can FINALLY write cleaner code:
#!/usr/bin/env perl use v5.40; use strict; # <-- technically not required, but makes it clear to the +reader we are using strict use warnings; # <-- technically not required (i think), but makes it c +lear to the reader we are using warnings # <- no *EXPERIMENTAL* stuff here for(my $i = 0; $i < 10; $i++) { # Note to reader: Yes, could have used a trinary here, but those a +re hard to read # and therefore forbidden in my codebase print "$i is "; if(!iseven($i)) { print "NOT "; } print "even\n"; } sub iseven($val) { if($val % 2 == 0) { return true; # !!!!! A NATIVE BOOLEAN!!!! } return false; # The *other*, more pessimistic, native boolean ;-) }
* Famous last words. Still installing all my codebases, but so far everything looks peachy.
In reply to Re: 5.40 released
by cavac
in thread 5.40 released
by hippo
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |