Having been burnt before, I had the luxury of being able to wait a few days (unlike cavac).
With no new PM questions posted today, I decided to build perl v5.38.2 from source, using the same steps as last time
(but installed into $HOME/my/p5382 this time, i.e. $ type perl - perl is hashed $HOME/my/p5382/bin/perl)
and it seems to be working nicely so far, at least kcott's and Tux's superb Unicode utilities are both working flawlessly. :)
Of course, having just completed that chore,
I'm half expecting an urgent new perl v5.38.3 to be rushed out tomorrow
(hope saying that doesn't jinx cavac's pyramid building :).
See Also
- Perl Download (perl.org) - getting started quickly (notes the latest stable version)
- CPAN Perl source code (cpan.org) - how to build/install perl from source (notes the latest stable version)
Extra Modules Installed Later (Update)
Got errors using
kcott's perlu alias (described at Re^2: Another Unicode/emoji question) ... to remedy, installed IPC::System::Simple:
$ alias perlu='perl -Mstrict -Mwarnings -Mautodie=:all -Mutf8 -C -E'
$ type perlu
perlu is aliased to `perl -Mstrict -Mwarnings -Mautodie=:all -Mutf8 -C
+ -E'
$ perlu 'say chr 0x1f436; say chr 128054;'
IPC::System::Simple required for Fatalised/autodying system() at -e li
+ne 0.
main::BEGIN() called at -e line 0
eval {...} called at -e line 0
BEGIN failed--compilation aborted.
As noted at SO question, it seems strange that a core functionality requires a non-core module, and quietly too (doesn't complain at installation).
See also: perl-autodie missing dependency for IPC::System::Simple (RedHat bugzilla).
This fixed my perlu issue:
$ type perl
perl is hashed ($HOME/my/p5382/bin/perl)
$ cd $HOME/my/p5382
$ cpanm --from https://www.cpan.org/ --verify IPC::System::Simple 2>&1
+ | tee IPC-System-Simple.tmp
--> Working on IPC::System::Simple
Fetching https://www.cpan.org/authors/id/J/JK/JKEENAN/IPC-System-Simpl
+e-1.30.tar.gz ... OK
Fetching https://www.cpan.org/authors/id/J/JK/JKEENAN/CHECKSUMS ... OK
Configuring IPC-System-Simple-1.30 ... OK
Building and testing IPC-System-Simple-1.30 ... OK
Successfully installed IPC-System-Simple-1.30
1 distribution installed
$ perlu 'say chr(0x1f436); say chr(128054);'
🐶
🐶
$ perlu 'say "\x{1f436}"'
🐶
$ perlu 'say "\N{DOG FACE}"'
🐶
$ echo -e '\U1f436'
🐶
For more detail on perl character escapes see: perlrebackslash (perldoc)
Later, installed Data::Dump and List::MoreUtils and Module::Starter:
$ cd $HOME/my/p5382
$ cpanm --from https://www.cpan.org --verify Data::Dump 2>&1 | tee Dat
+a-Dump.tmp
$ cpanm --from https://www.cpan.org --verify List::MoreUtils 2>&1 | te
+e List-MoreUtils.tmp
$ cpanm --from https://www.cpan.org --verify Module::Starter 2>&1 | te
+e Module-Starter.tmp
TODO: Install more CPAN modules (e.g. List::AllUtils and stuff by PEVANS e.g. List::UtilsBy, List::Keywords, ...).
Further analysis of perlrun and utf8.
|