60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/~perl2/bare/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator Tue Apr 14 01:00:37 2026 961 rss,clean 2026-04-17 05:00:37 Tue Apr 14 01:00:37 2026 30 PerlMonks http://perlmonks.org/ 20260414010037 Anonymous Monk Failed 2 tests on CygPerl for Test2::Harness; would a newer perl pass? Intrepid http://perlmonks.org/~perl2/bare/index.pl?node_id=11167551 I tried installing <a href="https://metacpan.org/pod/Test2%3A%3AHarness">Test2::Harness</a> and a couple tests failed. I am not totally understanding the output and if someone knowledgeable could interpret this for me I'd be grateful. ... perlquestion Wed, 15 Apr 2026 18:44:09 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167551 11167551 19724 2026-04-15 14:44:09 Intrepid metacpan fastapi can't find the Config module Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167545 I ran into this problem looking up module versions with fastapi on metacpan: % perl -MHTTP::Tiny -MJSON::PP -le 'print decode_json(HTTP::Tiny->new->get("https://fastapi.metacpan.org/v1/module... perlquestion Wed, 15 Apr 2026 14:39:17 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167545 11167545 961 2026-04-15 10:39:17 Anonymous Monk ExtUtils::Installed fails to find Catalyst because it doesn't have a .packlist Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167543 % perl -MExtUtils::Installed -le 'print for ExtUtils::Installed->new->files("Catalyst")' Catalyst is not installed at -e line 1. % perl -MModule::Metadata -le 'print Module::Metadata->ne... perlquestion Wed, 15 Apr 2026 14:27:33 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167543 11167543 961 2026-04-15 10:27:33 Anonymous Monk Perlbrew fails to install perl but reports success Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167538 % perlbrew install -v perl-5.8.9 ... DB_File.xs:998:34: error: incompatible function pointer types assigning to 'u_int32_t (*)(const void *, size_t)' (aka 'unsigned int (*)(const void *, uns... perlquestion Tue, 14 Apr 2026 17:16:26 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167538 11167538 961 2026-04-14 13:16:26 Anonymous Monk Re^11: Reusing a complex regexp in multiple spots, escaping the regexp LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167563 You are showing a semantic where /o MUST NOT be applied. Obviously you shouldn't inhibit recompilation if you need recompilation. One of the links sleet listed upthread (or the docs&#129300;)... note Thu, 16 Apr 2026 17:01:15 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167563 11167563 708738 2026-04-16 13:01:15 LanX Re^10: Reusing a complex regexp in multiple spots, escaping the regexp tobyink http://perlmonks.org/~perl2/bare/index.pl?node_id=11167562 I think that's what /o was invented for If a regexp contains something interpolated, I don't know if /o can do much for it. Consider: my... note Thu, 16 Apr 2026 15:05:48 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167562 11167562 757127 2026-04-16 11:05:48 tobyink Re^9: Reusing a complex regexp in multiple spots, escaping the regexp LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167561 &gt; Pretty sure they're not kept as nested objects. That was my first intuition, and looks like we were right, the final program is the same for the flattened string. $ perl ... note Thu, 16 Apr 2026 14:39:08 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167561 11167561 708738 2026-04-16 10:39:08 LanX Re^8: Reusing a complex regexp in multiple spots, escaping the regexp tobyink http://perlmonks.org/~perl2/bare/index.pl?node_id=11167560 Pretty sure they're not kept as nested objects. I believe when the larger regexp is being compiled, any nested regexps are simply stringified and interpolated into it. In the original pos... note Thu, 16 Apr 2026 13:00:25 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167560 11167560 757127 2026-04-16 09:00:25 tobyink Re^7: Reusing a complex regexp in multiple spots, escaping the regexp LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167559 I'm still not convinced that nesting qr// snippets into larger qr// parts is such a show stopper. Are they stored as nested objects causing overhead? (Hmm probably... I read som... note Thu, 16 Apr 2026 12:27:24 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167559 11167559 708738 2026-04-16 08:27:24 LanX Re: ExtUtils::Installed fails to find Catalyst because it doesn't have a .packlist Haarg http://perlmonks.org/~perl2/bare/index.pl?node_id=11167558 <a href="https://metacpan.org/pod/ExtUtils%3A%3AInstalled">ExtUtils::Installed</a>'s <a href="https://metacpan.org/pod/ExtUtils%3A%3AInstalled#files%28%29">files</a> method expects you to pass it the "main" module of a dist. For <a href="https://metacpan.org/pod/Catalyst">Catalyst</a>, this is <a href="https://metacpan.org/pod/Catalyst%3A%3ARuntime">Catalyst::Runtime</a>. ... note Thu, 16 Apr 2026 12:02:05 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167558 11167558 306692 2026-04-16 08:02:05 Haarg Re: Failed 2 tests on CygPerl for Test2::Harness; would a newer perl pass? hippo http://perlmonks.org/~perl2/bare/index.pl?node_id=11167557 Please don't use tags for large swathes of output like this. Use tags in preference. Thanks. &#129435; ... note Thu, 16 Apr 2026 09:31:03 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167557 11167557 885521 2026-04-16 05:31:03 hippo Re: ExtUtils::Installed fails to find Catalyst because it doesn't have a .packlist hippo http://perlmonks.org/~perl2/bare/index.pl?node_id=11167556 ls -l /perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/darwin-2level/auto/CGI -rw-r--r-- 1 user staff 1.3K Jan 2 00:34 .packlist drwxr-xr-x 3 user staff 96B J... note Thu, 16 Apr 2026 09:28:06 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167556 11167556 885521 2026-04-16 05:28:06 hippo Re: metacpan fastapi can't find the Config module hippo http://perlmonks.org/~perl2/bare/index.pl?node_id=11167555 fastapi returns a 404 code when you request info on a module which doesn't exist on CPAN. This is by design. You say you ran into a problem but I'm not seeing any problem in what you have... note Thu, 16 Apr 2026 09:11:08 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167555 11167555 885521 2026-04-16 05:11:08 hippo Re: Failed 2 tests on CygPerl for Test2::Harness; would a newer perl pass? tobyink http://perlmonks.org/~perl2/bare/index.pl?node_id=11167554 I'm currently running yath (though an older version) on Perl 5.38 and it's fine. CPAN Testers shows a mixture o... note Thu, 16 Apr 2026 08:33:57 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167554 11167554 757127 2026-04-16 04:33:57 tobyink Re^6: Reusing a complex regexp in multiple spots, escaping the regexp sleet http://perlmonks.org/~perl2/bare/index.pl?node_id=11167553 Note the (?(DEFINE)...) construct has it's own performance issue. From <a href="http://perldoc.perl.org/perlre.html#%28DEFINE%29">(DEFINE)</a>: patterns defined this way probably will not be as efficient, as the optimize... note Wed, 15 Apr 2026 22:32:15 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167553 11167553 1137922 2026-04-15 18:32:15 sleet Re^5: Reusing a complex regexp in multiple spots, escaping the regexp LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167552 Hmm interesting, and it seems there is no consensus what's happening. Dave_the_m says the qr object is always duplicated because matches depend on scope. Aristotle says, using an a... note Wed, 15 Apr 2026 20:27:17 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167552 11167552 708738 2026-04-15 16:27:17 LanX Re^4: Reusing a complex regexp in multiple spots, escaping the regexp sleet http://perlmonks.org/~perl2/bare/index.pl?node_id=11167550 It's also far less efficient (though perhaps not enough to matter). It surprises many people that qr is slower than expected: <a href="?node_id=1205956">Performance penalty of using qr//</a> ... note Wed, 15 Apr 2026 18:01:42 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167550 11167550 1137922 2026-04-15 14:01:42 sleet Re^3: ExtUtils::Installed fails to find Catalyst because it doesn't have a .packlist Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167549 Meta: Consider adding such information to your top post in the first place instead of waiting for replies trying to find out what your actual problem or question is. Maybe also consider phrasing th... note Wed, 15 Apr 2026 17:32:37 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167549 11167549 5348 2026-04-15 13:32:37 Corion Re^2: ExtUtils::Installed fails to find Catalyst because it doesn't have a .packlist Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167548 I think <a href="https://metacpan.org/pod/ExtUtils%3A%3AInstall">ExtUtils::Install</a> creates the .packlist during make install. It was installed by cpanm like all my other modules and a reinstall did not create a .packlist. Going through the Catal... note Wed, 15 Apr 2026 17:00:14 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167548 11167548 961 2026-04-15 13:00:14 Anonymous Monk Re^2: ExtUtils::Installed fails to find Catalyst because it doesn't have a .packlist roho http://perlmonks.org/~perl2/bare/index.pl?node_id=11167547 I agree with <a href="?node=Corion">Corion</a>'s advice. I prefer the package installer route that creates .packlist for you. ... note Wed, 15 Apr 2026 16:16:44 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167547 11167547 140424 2026-04-15 12:16:44 roho Re: metacpan fastapi can't find the Config module LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167546 What's the question? If it was is a bug you should file a bug report. But my guess is that you meant <a href="https://metacpan.org/pod/config">config</a> which is lower case. Edit Ugh ..... note Wed, 15 Apr 2026 14:50:14 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167546 11167546 708738 2026-04-15 10:50:14 LanX Re: ExtUtils::Installed fails to find Catalyst because it doesn't have a .packlist Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167544 So consider (re)installing <a href="https://metacpan.org/pod/Catalyst">Catalyst</a> with a package installer that creates a .packlist file, or create it yourself?... note Wed, 15 Apr 2026 14:37:48 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167544 11167544 5348 2026-04-15 10:37:48 Corion Re^4: Reusing a complex regexp in multiple spots, escaping the regexp LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167542 &gt; A whole bunch of qr// requires so much more noise. It's far less readable I can't follow... I'm sure I could take Hauke's <a href="?node_id=11167524">example</a> and translate it 1to1 using ... note Wed, 15 Apr 2026 09:42:51 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167542 11167542 708738 2026-04-15 05:42:51 LanX Re^3: Reusing a complex regexp in multiple spots, escaping the regexp ikegami http://perlmonks.org/~perl2/bare/index.pl?node_id=11167541 A whole bunch of qr// requires so much more noise. It's far less readable. It's also far less efficient (though perhaps not enough to matter). But you have a point about testability.... note Tue, 14 Apr 2026 19:18:13 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167541 11167541 381608 2026-04-14 15:18:13 ikegami Re: Perlbrew fails to install perl but reports success ikegami http://perlmonks.org/~perl2/bare/index.pl?node_id=11167540 perlbrew always says it successfully installs. This isn't new.... note Tue, 14 Apr 2026 19:11:39 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167540 11167540 381608 2026-04-14 15:11:39 ikegami Re: Perlbrew fails to install perl but reports success choroba http://perlmonks.org/~perl2/bare/index.pl?node_id=11167539 You can <a href="https://github.com/gugod/App-perlbrew/issues">report the issue</a> to perlbrew's developer. ... note Tue, 14 Apr 2026 19:06:54 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167539 11167539 832495 2026-04-14 15:06:54 choroba jjsloan jjsloan http://perlmonks.org/~perl2/bare/index.pl?node_id=11167564 user Thu, 16 Apr 2026 23:58:57 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167564 11167564 11167564 2026-04-16 19:58:57 jjsloan