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 28 12:51:06 2026 961 20260428125106 clean,rss 2026-05-01 16:51:06 Anonymous Monk 30 http://perlmonks.org/ Tue Apr 28 12:51:06 2026 PerlMonks 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 Healing Debian Perl (and whatever else is broken out there) Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167674 Apparently some package installers on some systems like Debian fail to create .packlist files for installed modules! This policy oversight breaks critical parts of the perl toolchain that depend on co... perlmeditation Fri, 01 May 2026 11:15:18 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167674 11167674 961 2026-05-01 07:15:18 Anonymous Monk Re: Healing Debian Perl (and whatever else is broken out there) Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167675 TIMTOWTDI, sorry it's late here, forgot to rewrite pipes as backticks: # archlib: The core .packlist perl -MConfig -e 'print `ls -la "$Config{archlib}/.packlist"`' perl -MConfig -e 'print `... note Fri, 01 May 2026 11:24:59 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167675 11167675 961 2026-05-01 07:24:59 Anonymous Monk Re^5: copyfail challenge: making Perl version smaller marto http://perlmonks.org/~perl2/bare/index.pl?node_id=11167673 "So we can trust open source modules? It's reasonable to expect you can trust something more if you have access to the source code, but you'd need to read and understand it, and the ... note Fri, 01 May 2026 08:33:04 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167673 11167673 324763 2026-05-01 04:33:04 marto Re: copyfail challenge: making Perl version smaller (trillion dollar lolcow) Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167672 You need to stop smoking those tokens bro. You did not fail, some robot failed. Confusing yourself with a pseudo-random text generator is a symptom of "AI" psychosis. Go touch grass man, but don't... note Fri, 01 May 2026 07:05:12 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167672 11167672 961 2026-05-01 03:05:12 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