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 PerlMonks Anonymous Monk Mon Apr 27 20:06:30 2026 2026-05-01 00:06:30 30 Mon Apr 27 20:06:30 2026 961 rss,clean 20260427200630 http://perlmonks.org/ copyfail challenge: making Perl version smaller dmitri http://perlmonks.org/~perl2/bare/index.pl?node_id=11167661 Hello Fellow Monks! By now, I am sure you have heard of the "732 bytes of Python code to root every major Linux distro." (I checked it out -- it works. Don't run it on your own machin... perlquestion Thu, 30 Apr 2026 01:37:12 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167661 11167661 41527 2026-04-29 21:37:12 dmitri Installation of 2 module prerequisites failing - using cpanm Intrepid http://perlmonks.org/~perl2/bare/index.pl?node_id=11167654 Hi Monks. I don&#39;t know if anyone can help me with this, but I&#39;ll ask anyhow. I&#39;m doing this on the commandline: $ PERL5LIB=~/build/perl-testi... perlquestion Tue, 28 Apr 2026 21:52:58 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167654 11167654 19724 2026-04-28 17:52:58 Intrepid Perl Inheritance Not Working as Expected InfiniteSilence http://perlmonks.org/~perl2/bare/index.pl?node_id=11167650 So I write a response to this blogs.perl.org post titled, 'Who Tests the Tester? Me!!!... perlquestion Tue, 28 Apr 2026 18:24:08 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167650 11167650 45622 2026-04-28 14:24:08 InfiniteSilence parentheses missing in action Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167649 I'm using autodie so this seemed reasonable: open my $pipe, $cmds; But perl warns: Parentheses missing around "my" list at ... It works but it warns and I know why. All o... perlquestion Tue, 28 Apr 2026 18:15:21 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167649 11167649 961 2026-04-28 14:15:21 Anonymous Monk Where are the perldelta files for development releases? Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167641 <a href="http://perldoc.perl.org/perl5160delta.html">perl5160delta</a> says: Documentation Removed Documentation Development Deltas The perldelta files for development releases are no l... perlquestion Tue, 28 Apr 2026 07:03:46 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167641 11167641 961 2026-04-28 03:03:46 Anonymous Monk Re^2: copyfail challenge: making Perl version smaller harangzsolt33 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167671 You may want to watch this movie. It is really an eye-opener about AI... THE THINKING GAME <a href="https://www.youtube.com/watch?v=d95J8yzvjbQ">https://www.youtube.com/watch?v=d95J8yzvjbQ</a>... note Thu, 30 Apr 2026 19:31:35 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167671 11167671 1166559 2026-04-30 15:31:35 harangzsolt33 Re^2: copyfail challenge: making Perl version smaller dmitri http://perlmonks.org/~perl2/bare/index.pl?node_id=11167670 Yes, but until you reboot (or flush pagecache), the su command is bad. And some people do not reboot for a long time. I checked the functionality of the exploit in QEMU.... note Thu, 30 Apr 2026 19:27:10 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167670 11167670 41527 2026-04-30 15:27:10 dmitri Re^2: copyfail challenge: making Perl version smaller dmitri http://perlmonks.org/~perl2/bare/index.pl?node_id=11167669 That's true -- I think I should have posted my code with the original comment.... note Thu, 30 Apr 2026 19:25:55 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167669 11167669 41527 2026-04-30 15:25:55 dmitri Re: copyfail challenge: making Perl version smaller LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167668 &gt; Don't run it on your own machine, though, as it will mangle your `su` binary The project's site says the effect is gone after rebooting. And even if there was a lasting effect... note Thu, 30 Apr 2026 16:10:49 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167668 11167668 708738 2026-04-30 12:10:49 LanX Re^4: copyfail challenge: making Perl version smaller LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167667 So we can trust open source modules? There was a recent blog-/reddit-post about hundreds of pull requests produced by AI and accepted within a week. Some commentators pointed out that some... note Thu, 30 Apr 2026 12:30:51 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167667 11167667 708738 2026-04-30 08:30:51 LanX Re^3: copyfail challenge: making Perl version smaller marto http://perlmonks.org/~perl2/bare/index.pl?node_id=11167666 "The message now is that all Python code is potentially dangerous, do we want to push to be in the same spotlight?" I don't think that's the message at all. Don't blindly trust any c... note Thu, 30 Apr 2026 12:18:42 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167666 11167666 324763 2026-04-30 08:18:42 marto Re^2: copyfail challenge: making Perl version smaller LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167665 &gt; but I guess the PR value of having a "really low number of bytes" in the headline is high. I'm not sure about that PR value. The most likely way for outside attackers is to hi... note Thu, 30 Apr 2026 11:58:34 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167665 11167665 708738 2026-04-30 07:58:34 LanX Re: copyfail challenge: making Perl version smaller marto http://perlmonks.org/~perl2/bare/index.pl?node_id=11167664 Context: <a href="https://copy.fail">https://copy.fail</a>.... note Thu, 30 Apr 2026 09:26:58 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167664 11167664 324763 2026-04-30 05:26:58 marto Re: copyfail challenge: making Perl version smaller Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167663 My guess would be that you would get better responses if you actually posted your attempt. People familiar with the usual golfing approaches can then spot locations where you can improve the golfin... note Thu, 30 Apr 2026 09:22:52 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167663 11167663 5348 2026-04-30 05:22:52 Corion Re: copyfail challenge: making Perl version smaller stevieb http://perlmonks.org/~perl2/bare/index.pl?node_id=11167662 At any rate -- I figured, we can make it smaller in Perl! A half hour and a bunch of tokens later, I failed. You're using pronouns like some "AI" deserves one. AI is not intellige... note Thu, 30 Apr 2026 09:05:19 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167662 11167662 789891 2026-04-30 05:05:19 stevieb Re^2: Installation of 2 module prerequisites failing - using cpanm Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167660 I think part of it is the use of --self-contained, while also not having the core modules available maybe due to overriding PERL5LIB and Perl itself not supplying the correct path, ma... note Wed, 29 Apr 2026 13:51:33 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167660 11167660 5348 2026-04-29 09:51:33 Corion Re^2: Installation of 2 module prerequisites failing - using cpanm LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167659 Hi <a href="?node=tobyink">tobyink</a> You haven't been here for a while, welcome back! :) So you know &gt; likely deeper issues at play Multiple conflicting Perl installations and messed up env... note Wed, 29 Apr 2026 11:33:07 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167659 11167659 708738 2026-04-29 07:33:07 LanX Re: Installation of 2 module prerequisites failing - using cpanm tobyink http://perlmonks.org/~perl2/bare/index.pl?node_id=11167658 File::Temp has been bundled with Perl since Perl 5.6.1 was released more than a quarter of a century ago. Test::More has been included since 5.6.2, almost as long ago. If your Perl ... note Wed, 29 Apr 2026 10:50:55 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167658 11167658 757127 2026-04-29 06:50:55 tobyink Re^3: Perl Inheritance Not Working as Expected bliako http://perlmonks.org/~perl2/bare/index.pl?node_id=11167657 I create OO modules manually. The boilerplate is minimal. FWIW, I use module-starter --module='XXX:XXX' --builder='ExtUtils::MakeMaker' --author='XXX' --email='XXX' to start a new module and... note Wed, 29 Apr 2026 09:21:30 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167657 11167657 1165397 2026-04-29 05:21:30 bliako Re: Installation of 2 module prerequisites failing - using cpanm bliako http://perlmonks.org/~perl2/bare/index.pl?node_id=11167656 When I try to build the two required modules alone, I can't get a succcessful installation. well, show us the errors of installing the 2 required modules. Unless you... note Wed, 29 Apr 2026 09:14:02 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167656 11167656 1165397 2026-04-29 05:14:02 bliako Re^3: Perl Inheritance Not Working as Expected hippo http://perlmonks.org/~perl2/bare/index.pl?node_id=11167655 Other stuff but no 'new'. A new() method in the preferred fashion would be good, no? No, because: Not every module is a class. Some (... note Wed, 29 Apr 2026 08:46:33 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167655 11167655 885521 2026-04-29 04:46:33 hippo Re^2: Perl Inheritance Not Working as Expected InfiniteSilence http://perlmonks.org/~perl2/bare/index.pl?node_id=11167653 This error is just too easy to make. I used to use h2xs but it creates so much stuff that I avoid using it. I was at a Perl conference where one of the Stonehenge presenters used a 'new' tool to ... note Tue, 28 Apr 2026 19:49:12 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167653 11167653 45622 2026-04-28 15:49:12 InfiniteSilence Re: Perl Inheritance Not Working as Expected Fletch http://perlmonks.org/~perl2/bare/index.pl?node_id=11167652 If you check the new in the FakeTuple it's using the one arg'd version of <a href="http://perldoc.perl.org/functions/bless.html">bless</a> which as noted in the documentation for same isn't inheritable. The constructor should be using the... note Tue, 28 Apr 2026 19:02:23 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167652 11167652 58196 2026-04-28 15:02:23 Fletch Re: parentheses missing in action Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167651 See <a href="https://github.com/Perl/perl5/pull/24378">https://github.com/Perl/perl5/pull/24378</a>, which discusses the heuristic.... note Tue, 28 Apr 2026 18:54:24 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167651 11167651 5348 2026-04-28 14:54:24 Corion Re^3: Interpolate variable into regexp at time of definition rather than execution, as a filter for Path::Iterator::Rule (FATAL warnings) LanX http://perlmonks.org/~perl2/bare/index.pl?node_id=11167648 So the TL;DR version is you wrote my $int - $1; instead of my $int = $1; and didn't notice the warnings. ;-) &gt; (It is unfortunate ... note Tue, 28 Apr 2026 16:02:54 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167648 11167648 708738 2026-04-28 12:02:54 LanX Re^2: Interpolate variable into regexp at time of definition rather than execution, as a filter for Path::Iterator::Rule ecm http://perlmonks.org/~perl2/bare/index.pl?node_id=11167647 Thank you, it was indeed an error on my part. I originally used $1 in the filter's regexp which does generate a similar error message (that was part of what misled me later). I also pruned a test c... note Tue, 28 Apr 2026 15:03:59 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167647 11167647 11162865 2026-04-28 11:03:59 ecm Re: Where are the perldelta files for development releases? Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167642 The Perldelta files for a development version are distributed with the development version, for example <a href="https://metacpan.org/release/EHERMAN/perl-5.43.9">Perl 5.43.9</a> contains the Perldelta files f... note Tue, 28 Apr 2026 07:13:35 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167642 11167642 5348 2026-04-28 03:13:35 Corion roomi roomi http://perlmonks.org/~perl2/bare/index.pl?node_id=11167645 user Tue, 28 Apr 2026 12:33:18 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167645 11167645 11167645 2026-04-28 08:33:18 roomi enategaa enategaa http://perlmonks.org/~perl2/bare/index.pl?node_id=11167643 user Tue, 28 Apr 2026 07:25:34 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167643 11167643 11167643 2026-04-28 03:25:34 enategaa