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 clean,rss 20260518161601 2026-05-21 20:16:01 http://perlmonks.org/ 961 Mon May 18 16:16:01 2026 PerlMonks Anonymous Monk 30 Mon May 18 16:16:01 2026 Finding the value of -I and -M command line switches Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167839 Let's say you wrote a module that's invoked from the command line to start a long running process. For some reason you want to restart the process on specific occasions and need to reconstruct the ... perlquestion Thu, 21 May 2026 11:49:59 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167839 11167839 961 2026-05-21 07:49:59 Anonymous Monk Advice for name for new module to lookup data via DNS service thogard http://perlmonks.org/~perl2/bare/index.pl?node_id=11167828 I found that the some of the people from APNIC have a new tool using DNS to look up ASN details for any IP address. So looking up info about an ip address or dns A record gives details ou... perlquestion Tue, 19 May 2026 03:03:50 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167828 11167828 11167826 2026-05-18 23:03:50 thogard Re: Implicit references? module -> feature -> pragma -> "Perl8" ? tobyink http://perlmonks.org/~perl2/bare/index.pl?node_id=11167841 The alternative is to adopt a programming style where array and hash variables are rarely used. # Not this... my @items = qw( banana orange banana apple ); my %counts = count_ite... note Thu, 21 May 2026 12:33:06 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167841 11167841 757127 2026-05-21 08:33:06 tobyink Re: Finding the value of -I and -M command line switches tobyink http://perlmonks.org/~perl2/bare/index.pl?node_id=11167840 Devel::PL_origargv Hire me at Toby Ink Ltd... note Thu, 21 May 2026 12:08:54 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167840 11167840 757127 2026-05-21 08:08:54 tobyink Re^2: The cognitive load of generated code Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167838 ... this feels a bit like a second <a href="http://en.wikipedia.org/wiki/Special:Search?search=Eternal%20September">Eternal September</a>, except that it is not humans.... note Thu, 21 May 2026 07:17:52 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167838 11167838 5348 2026-05-21 03:17:52 Corion Re: The cognitive load of generated code hv http://perlmonks.org/~perl2/bare/index.pl?node_id=11167837 then fed it back into the model asking it to explain why its code sucks I am urgently looking forward to the time that the AI models I get to interact with are designed to learn... note Thu, 21 May 2026 03:37:50 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167837 11167837 209409 2026-05-20 23:37:50 hv Re^4: Perlmonks.com and Perlmonks.net now redirect to Perlmonks.org Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167836 Yes - the first step was a really coarse approach, basically caching all GET requests. Refining the access to some of the URLs is on the list, as we get more familiar with the Fastly / Varni... note Tue, 19 May 2026 08:39:38 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167836 11167836 5348 2026-05-19 04:39:38 Corion Re^3: Perlmonks.com and Perlmonks.net now redirect to Perlmonks.org hippo http://perlmonks.org/~perl2/bare/index.pl?node_id=11167835 Tempting though it is, I would not go making special exceptions for widely-used user agent strings like this. You'll be back to square one in no time. The other option sounds good. I don'... note Tue, 19 May 2026 08:35:50 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167835 11167835 885521 2026-05-19 04:35:50 hippo Re^2: Perlmonks.com and Perlmonks.net now redirect to Perlmonks.org Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167834 Yes, that's mildly expected - it also affects mini-cb60 for example. The reason is that we currently serve cached content to all anonymous GET requests. The solution I see for this i... note Tue, 19 May 2026 08:06:09 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167834 11167834 5348 2026-05-19 04:06:09 Corion Re: Perlmonks.com and Perlmonks.net now redirect to Perlmonks.org hippo http://perlmonks.org/~perl2/bare/index.pl?node_id=11167833 Just in case it has not been noticed - this change appears to have locked out the <a href="?node=chatterbot">chatterbot</a>. <a href="?node_id=596792">last hour of cb</a> has been empty since the switch-over. ... note Tue, 19 May 2026 08:02:40 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167833 11167833 885521 2026-05-19 04:02:40 hippo Re^2: Perlmonks.com and Perlmonks.net now redirect to Perlmonks.org Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167832 Yes. For <a href="?node=Anonymous%20Monk">Anonymous Monk</a>, all pages are cached for 1 day. This is the easy solution while we look at differentiating anonymous human access from anonymous scrapers. When the dust has settl... note Tue, 19 May 2026 07:39:57 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167832 11167832 5348 2026-05-19 03:39:57 Corion Re: Perlmonks.com and Perlmonks.net now redirect to Perlmonks.org Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167831 Have you noticed that the CDN is serving up stale pages to Anonymous Monk? When I post a reply it doesn't show up on Newest Nodes or Recent Threads or anywhere else. I can see all the replies via "pri... note Tue, 19 May 2026 07:36:24 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167831 11167831 961 2026-05-19 03:36:24 Anonymous Monk Re^3: The cognitive load of generated code Anonymous Monk http://perlmonks.org/~perl2/bare/index.pl?node_id=11167830 I see what you mean. The lack of parentheses on length and especially int is ambiguous. I remember having to test int once to see if something like int $a / 2 means int($a) / 2 or ... note Tue, 19 May 2026 07:13:25 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167830 11167830 961 2026-05-19 03:13:25 Anonymous Monk Re: Advice for name for new module to lookup data via DNS service eyepopslikeamosquito http://perlmonks.org/~perl2/bare/index.pl?node_id=11167829 G'day <a href="?node=thogard">thogard</a> and welcome to the monastery! I see you are from Melbourne. Do you know the famous Melbournian Perl monk <a href="?node=kcott">kcott</a>? (who I hope will reply to your question) ... note Tue, 19 May 2026 05:17:55 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167829 11167829 176576 2026-05-19 01:17:55 eyepopslikeamosquito Re^2: The cognitive load of generated code ikegami http://perlmonks.org/~perl2/bare/index.pl?node_id=11167825 Worse, it's shortened to empty list. Returning an empty list from a sub expected to return a scalar can have very weird effects. length $f is awful too. foo $f norma... note Tue, 19 May 2026 01:21:02 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167825 11167825 381608 2026-05-18 21:21:02 ikegami thogard thogard http://perlmonks.org/~perl2/bare/index.pl?node_id=11167826 Long term perl user since the very early days of perl. Still have code in production that moved from perl 4.... user Tue, 19 May 2026 02:13:41 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167826 11167826 11167826 2026-05-18 22:13:41 thogard