. "$BST_LIB" require perl perl/present # Interpreter identifies as the ported wasm32 build (not a host perl). check_out perl/version "v5.38.4" perl --version check_out perl/run "PERL-OK" perl -e 'print "PERL-OK\n"' # strict + warnings load: exercises the warnings.pm backref workaround # (magic_killbackrefs use-after-free, linux-in-the-browser#93). check_out perl/strict-warnings "SW-OK" perl -e 'use strict; use warnings; print "SW-OK\n"' # Core XS modules — each loads a static .so-less XS extension and runs it. check_out perl/list-util "55/9" perl -MList::Util=sum,max -e 'print sum(1..10),"/",max(3,9,4),"\n"' check_out perl/posix "3/4" perl -MPOSIX=floor,ceil -e 'print floor(3.7),"/",ceil(3.2),"\n"' check_out perl/scalar-util "NUM" perl -MScalar::Util=looks_like_number -e 'print looks_like_number("42")?"NUM":"NaN","\n"' check_out perl/data-dumper "\$VAR1 = {'a' => 1};" perl -MData::Dumper -e '$Data::Dumper::Indent=0;print Dumper({a=>1})'