pperl 0.6.25#

2026-10-25 to 2026-10-31, 57 commits.

Language and runtime#

  • Config’s extension lists match perl’s: $Config{nonxs_ext} lists the pure-Perl extensions in the order perl itself reports them, and JSON::PP, which is now built in, appears once, among the built-in extensions, instead of in both lists.

  • The static builds say they cannot load libraries: a static pperl has no dynamic loader, and $Config{usedl}, dlsrc and dlext now say so as perl does on such a system (undef, dl_none.xs, none), so a module or test that checks before loading a C library at run time skips instead of failing.

  • The static builds describe the C library they are built on: on the static builds, the %Config entries that say which C library functions and headers exist (d_backtrace, i_execinfo and the rest) describe musl, the library the binary contains, instead of the glibc of the machine that built it; gnulibc_version is empty, and Errno lists musl’s error names.

  • pperl builds on Debian and Ubuntu: the build failed there, finding no error names for Errno, because those systems keep most C headers in a per-architecture directory the build did not search. It now looks where the C compiler looks, as perl’s own build does, so it succeeds, and %Config’s header entries (i_systypes, i_stdbool and the rest) agree with the system’s perl there and elsewhere.

Modules#

  • Data::Sah and the Perinci family install without QuickJS-NG: without the QuickJS-NG library, pperl --cpan installed JavaScript::QuickJS but not Data::Sah::Coerce, whose tests of its JavaScript coercers need the library, nor Data::Sah and the Perinci modules built on it. Those tests now skip and say why. JavaScript::QuickJS also declares the module its own tests need, so it installs as a prerequisite on a system that lacks File::Slurper.

  • Email::Address::XS installs, and with it Email::MIME’s address headers: pperl --cpan installs Email::Address::XS with its address parser in Perl, so Email::MIME, which reads and writes the From, To and Cc headers through it, installs and works. Results, warnings, Unicode and taint handling are the distribution’s; only a warning from a function called directly at the top level of a program names its location more briefly.

  • Syntax::Keyword::Try and its keyword engine are built in: XS::Parse::Keyword 0.51, the engine CPAN’s keyword modules build their syntax on, comes with pperl, with XS::Parse::Keyword::FromPerl, XS::Parse::Infix::FromPerl and Optree::Generate 0.10 for writing new keywords and infix operators in Perl. Syntax::Keyword::Try 0.31 runs on it: try, catch (typed, too) and finally, with return and the loop controls acting on the enclosing sub or loop. meta 0.015, the meta-programming API those modules use, is built in as well, and all of their test suites pass as with perl 5.

  • B names custom ops by their registration: B::OP::name and desc of a custom op return the name and description its module registered, not “custom”, so B::Deparse prints code that uses such ops - Syntax::Keyword::Try’s try among them - as it was written.

  • Peta::FFI returns arrays the caller frees: a C function’s result can be an array or bytes it allocated for the caller, *T[#k], *T[0] or *P[#k], as an argument already could: ()*s[0] takes a NULL-terminated char ** whose strings and array the caller frees, as liblxc’s get_ips returns one. The elements come back as an array reference and the memory is freed with the function’s free (records keep theirs until the last one is gone).

  • Peta::FFI::PCRE2 bounds untrusted patterns and filters lists: new takes match_limit, depth_limit and heap_limit, so a pattern that would backtrack for seconds fails at once with its usual match error, and limit_hit tells such a failure from any other. grep matches a whole list of subjects in one call and returns the matching ones, their indices, or each one with its capture groups; with skip_limited a subject that reaches a limit counts as no match.

  • MediaWiki::DumpFile installs: pperl --cpan installs it and XML::TreePuller, which failed on their prerequisite Tree::XPathEngine: its documentation fails its own test, under perl 5 as well, wherever Test::Pod is installed. pperl installs it with that documentation corrected.

  • Device::SerialPort installs: pperl --cpan installs Device::SerialPort 1.04 with its table of serial-line constants in Perl, and without the C compiler its build used to need. Speeds, framing, flow control and the modem lines are set as with the compiled original, on the static builds too, where the speed constants are now the C library’s own.

  • IO::Socket::Multicast installs: pperl --cpan installs IO::Socket::Multicast 1.12 with its socket options set in Perl, so programs join and leave multicast groups and set the TTL, loopback and outgoing interface as with the compiled original, for mDNS, SSDP and the like. An interface is given by its address; naming it (eth0) needs IO::Interface, which does not install yet.

  • YAML::Syck installs: pperl --cpan installs YAML::Syck 1.47, and JSON::Syck with it, with Syck’s reading and writing in Perl over YAML::PP: the same implicit typing, tags, aliases and blessed objects on load, the same layout and quoting on dump. All 1176 of the distribution’s tests pass; loading is much slower than the compiled original’s.

  • Mail::DKIM installs, with Crypt::OpenSSL::RSA and Crypt::PK::Ed25519 built in: pperl --cpan installs Mail::DKIM, which signs and verifies mail with RSA and Ed25519 keys, and all of its tests pass. Crypt::OpenSSL::RSA 0.41 with Crypt::OpenSSL::Bignum 0.09, and Crypt::PK::Ed25519 of CryptX 0.091, come with pperl over the system’s OpenSSL; the rest of CryptX does not. Decrypting the encryption of an empty string gives it back, and an Ed25519 key exported as encrypted PEM loads again, where both fail on perl 5. Ed25519ctx with an empty context and OpenSSH keys protected by a passphrase are not supported.

  • XML::Parser calls ExternEnt under NoExpand: a parser made with NoExpand skipped external entities silently instead of handing them to its ExternEnt handler, so a handler written to refuse them - as SOAP::Lite’s is, against XML external entity attacks - never ran. It runs now, attribute values are expanded under NoExpand as expat expands them, and a reference right after an external entity is no longer lost.

  • POSIX’s terminal speeds follow the C library: on the static builds, POSIX::B9600 and the other baud rate constants were the plain rates, which musl’s speed functions reject, so POSIX::Termios->setospeed(B9600) failed and serial port modules could not set a speed. The constants are now whatever the C library the binary uses defines, as on perl 5 built against it.

  • XML::LibXML is built in: XML::LibXML 2.0213 comes with pperl over the system’s libxml2 2.15 or newer: the DOM with namespaces, XPath, SAX, the pull reader, and RELAX NG and XML Schema validation, and its whole test suite passes as with perl 5. As upstream, it expands no entities and loads no external DTD unless asked, and libxml2 2.15 reaches no network of its own. XML::SAX::Base, XML::SAX::Exception, XML::SAX::DocumentLocator and XML::NamespaceSupport, which it loads, are built in with it.

  • XML::LibXSLT is built in: XML::LibXSLT 2.003000 comes with pperl over the system’s libxslt, transforming XML::LibXML documents with XSLT 1.0 and the EXSLT extensions, with extension functions and elements written in Perl and the security callbacks, and its whole test suite passes as with perl 5. The libxslt must be built against libxml2 2.15 or newer; one built against an older libxml2 is refused with a message saying so.

  • A module whose C library is missing fails to load instead of hanging: on a system without its C library, Net::SSLeay, Compress::Raw::Bzip2 and the other built-in modules over one loaded as if they had, without their functions, and the first call ran until memory ran out. require now fails with the message naming the library and how to install it.

  • The static builds leave out the modules that need a C library: a static pperl cannot load a library at run time, so Net::SSLeay, IO::Socket::SSL, XML::LibXML, XML::Parser, Math::GMP, Compress::Raw::Bzip2, DB_File, GDBM_File, Cairo, GD, SDL2, Peta::FFI, FFI::Platypus and the others that need one (the list) are no longer part of it. require of one fails at once, saying that a static pperl does not support it and which library it would need, and no copy elsewhere on @INC is tried. pperl --bundle refuses to build an app for such a --base from a program that uses one, naming each with the reason.

Command line#

  • pperl --bundle makes a Perl program one executable file: pperl --bundle -o APP PROGRAM (a tutorial) writes APP, a copy of pperl with PROGRAM and every module it loads that pperl does not carry, so it runs on a machine with nothing installed; built from a static pperl (--base) it needs no library either. The modules are found by compiling PROGRAM, and one it loads only while running is named with --include. APP passes every argument to PROGRAM, and $0 is APP. Started with PPERL_BUNDLE_PERL=1 in its environment, APP is pperl itself with PROGRAM’s modules, so helpers run as $^X -MModule -e ... work. An APP whose home directory is read-only, as under systemd’s ProtectHome, keeps its files under $XDG_RUNTIME_DIR or /tmp instead; plain pperl that cannot write its library there says so once.

  • pperl --cpan says when nothing was installed: a module name CPAN does not know, or a distribution that failed without CPAN noticing, used to end with “installed into”; pperl --cpan now names the modules it did not install and exits with status 1 (Installing and finding modules). A request for modules that are all built in no longer ends with it either, and PPERL_HOME set to an empty string counts as unset instead of installing into the current directory.