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 http://perlmonks.org/ Anonymous Monk Fri Apr 17 16:58:02 2026 PerlMonks 961 Fri Apr 17 16:58:02 2026 30 20260417165802 2026-04-20 20:58:02 clean,rss Side effects of (??{CODE}) in Regex (Rubber Ducking) LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167584 I wanted to test the effect of the /o modifier on embedded code (<a href="?node_id=11167570">context</a>), and was very surprised about the second version using (??{CODE}) (FWIW adding /o makes the first... perlmeditation Sat, 18 Apr 2026 19:00:44 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167584 11167584 708738 2026-04-18 15:00:44 LanX Re^3: counting backward (optimize foreach reverse low .. high Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167586 Somebody finally made a feature request for the optimization, but it didn't get any traction: <a href="https://github.com/Perl/perl5/issues/22825">Optimize reverse RANGE</a>.... note Mon, 20 Apr 2026 02:46:54 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167586 11167586 961 2026-04-19 22:46:54 Anonymous Monk Re: metacpan fastapi can't find the Config module InfiniteSilence http://perlmonks.org/~perl2/bare/index.pl?node_id=11167585 I'm with hippo; not sure why you are doing this but here are some ideas. First, MetaCPAN has its own module. Borrowed directly from Met... note Sun, 19 Apr 2026 19:48:47 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167585 11167585 45622 2026-04-19 15:48:47 InfiniteSilence Re^23: Reusing a complex regexp in multiple spots, escaping the regexp dave_the_m http://perlmonks.org/~perl2/bare/index.pl?node_id=11167583 state is implemented sensibly. The /o implementation needs updating to behave like state. It's a hacky leftover from when the perl internals were first altered to be thread-safe. Dave.... note Sat, 18 Apr 2026 16:07:05 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167583 11167583 341121 2026-04-18 12:07:05 dave_the_m Re^22: Reusing a complex regexp in multiple spots, escaping the regexp LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167582 It's much clearer now, much appreciated! &#128591;&#127995; Op-Tree manipulation is indeed "creative". (I remember <a href="?node=Merlyn">Merlyn</a> complaining that the flip-flop was implemented in a similar way... note Sat, 18 Apr 2026 13:47:18 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167582 11167582 708738 2026-04-18 09:47:18 LanX Re^21: Reusing a complex regexp in multiple spots, escaping the regexp dave_the_m http://perlmonks.org/~perl2/bare/index.pl?node_id=11167581 On unthreaded builds, after the pattern has been assembled and compiled once, the op tree is modified so that on subsequent executions, all the assembly ops are skipped. On threaded builds, all the as... note Sat, 18 Apr 2026 12:30:23 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167581 11167581 341121 2026-04-18 08:30:23 dave_the_m