toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#perl

15 posts13 participants0 posts today
"Mutant Rob" Robert Rothenberg<p>I've recently uploaded a new version of the <a href="https://infosec.exchange/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> <a href="https://infosec.exchange/tags/Catalyst" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Catalyst</span></a> plugin to <a href="https://infosec.exchange/tags/CPAN" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPAN</span></a> </p><p>Catalyst::Plugin::Static::File is an extension for serving a single file that plays nicely with <a href="https://infosec.exchange/tags/Plack" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Plack</span></a> especially Plack::Middleware::XSendFile and Plack::Middleware::ETag.</p><p><a href="https://metacpan.org/release/RRWO/Catalyst-Plugin-Static-File-v0.2.4" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">metacpan.org/release/RRWO/Cata</span><span class="invisible">lyst-Plugin-Static-File-v0.2.4</span></a></p><p>The new version has minor code changes but requires a more recent version of Catalyst. There's also a lot of reorganisation of the documentation.</p>
genehack<p>Something something <a href="https://dementedandsadbut.social/tags/perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perl</span></a> <a href="https://beige.party/@AnAutieAtUni/114907503673389594" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">beige.party/@AnAutieAtUni/1149</span><span class="invisible">07503673389594</span></a></p>
Daniel Böhmer<p><span class="h-card" translate="no"><a href="https://manitu.social/@team" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>team</span></a></span> Ist das <a href="https://ieji.de/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a>-Code? Sieht verdächtig so aus🤔</p>
"Mutant Rob" Robert Rothenberg<p>Code review.</p><p>A regular source of <a href="https://infosec.exchange/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> bugs is when developers forget that DateTime has mutable state:</p><p>return $dt-&gt;add( days =&gt; 7 )</p><p>changes $dt.</p>
r҉ustic cy͠be̸rpu̵nk🤠🤖<p>I just realized I could write <a href="https://masto.hackers.town/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> which writes more Perl, which will then run that Perl</p><p>So many possibilities</p><p>BRB Building myself an arsenal of foot canons...</p>
Axel ⌨🐧🐪🚴😷 | R.I.P Natenom<p><span class="h-card" translate="no"><a href="https://social.linux.pizza/@domm" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>domm</span></a></span>: Oh fsck, <a href="https://chaos.social/tags/mst" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mst</span></a> died? Very sad to hear. 😢 I still remember that he offered help and advise when I took over <a href="https://chaos.social/tags/Lintian" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lintian</span></a>, especially about the web backend (which the previous Lintian maintainer started to rewrite from scratch but never finished) where mst seems to have been involved from the <a href="https://chaos.social/tags/PostgreSQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PostgreSQL</span></a> side. He was also often present in <a href="https://chaos.social/tags/Debian" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Debian</span></a>'s <a href="https://chaos.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> IRC channels and we chatted occasionally, not always about Perl. I think I also met him IRL once, but I'm no more sure where.</p><p><a href="https://chaos.social/tags/ripmst" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ripmst</span></a> <a href="https://chaos.social/tags/rip" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rip</span></a></p>
wlmb<p><a href="https://mstdn.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> @PerlWChallenge 331 Task 2: Buddy Strings<br><a href="https://mstdn.social/tags/noxp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>noxp</span></a><br>```<br>perl -E '<br>for my($s,$t)(@ARGV){say"$s $t -&gt; ",($j="$s$;$t")=~/^(.*)(.)(.*)(.)(.*)$;\1\4\3\2\5$/?"T":"F"}<br>' fuck fcuk love love fodo food feed feed<br>```</p>
FErki<p>Today I celebrate my first upload to PAUSE 11 years ago to publish Rex-0.50.0 on <a href="https://fosstodon.org/tags/CPAN" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPAN</span></a>.</p><p>I look forward to the next 11 years of sharing <a href="https://fosstodon.org/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> solutions!</p>
Mark<p>Oh my gosh, I didn't know that Matt Trout died. He was a definite "presence" in the Perl world.</p><p>The last time I interacted with him was years ago. He was trying to convince to me to get involved in taking on XS components of some CGI-related modules. I'd have rather had needles pounded into my eyes.</p><p>I always appreciated his bluntness. And his very fast, sharp intelligence.</p><p>I didn't even know he wasn't able to work much lately. Godspeed Matt.</p><p><a href="https://hard.blue/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> <a href="https://hard.blue/tags/wetlands" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wetlands</span></a></p><p><a href="https://www.shadowcat.co.uk/2025/07/09/ripples-they-cause-in-the-world/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">shadowcat.co.uk/2025/07/09/rip</span><span class="invisible">ples-they-cause-in-the-world/</span></a></p>
Mohammad Sajid Anwar<p>The Weekly Challenge - 331 <a href="https://fosstodon.org/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> <a href="https://fosstodon.org/tags/RakuLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RakuLang</span></a><br>Task 1: Last Word<br>Task 2: Buddy Strings<br><a href="https://theweeklychallenge.org/blog/perl-weekly-challenge-331" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">theweeklychallenge.org/blog/pe</span><span class="invisible">rl-weekly-challenge-331</span></a></p>
Oriel Jutty :hhHHHAAAH:<blockquote><p>A memorial, and burial, for [Matt S. Trout a.k.a mst] will be held at 14:00 on Wednesday 30th July in the Much Hoole Woodland Burial Ground.</p></blockquote><p><a href="https://www.shadowcat.co.uk/2025/07/20/memento-mei/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">shadowcat.co.uk/2025/07/20/mem</span><span class="invisible">ento-mei/</span></a></p><p><a href="https://infosec.exchange/tags/perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perl</span></a> <a href="https://infosec.exchange/tags/fuck" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fuck</span></a></p>
Profoundly Nerdy<p><span class="h-card"><a href="https://infosec.exchange/@barubary" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>barubary</span></a></span> This is why I love the <a href="https://bitbang.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> community. They know their shit and can explain all manner of syntactic quirks in depth. </p><p>I'm not sure I knew about the `+` operator.</p>
Oriel Jutty :hhHHHAAAH:<p><span class="h-card" translate="no"><a href="https://bitbang.social/@profoundlynerdy" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>profoundlynerdy</span></a></span> That's a purely syntactic issue. You want <code>(...)</code> to be parsed as the <code>(...)[...]</code> list slice operator, but here <code>say</code> gobbles it up for the <code>say(...)</code> function call syntax. Two solutions:</p><ol><li><code>say((split " ", "Foo Bar")[0])</code></li><li><code>say +(split " ", "Foo Bar")[0]</code></li></ol><p>(I changed <code>split / /</code> (which splits on single spaces) to <code>split " "</code> (which splits on any kind of (possibly repeated) whitespace) because that's usually what people want. If you need <code>" Foo Bar"</code> to become <code>("", "Foo", "", "Bar")</code>, use <code>split / /</code>.)</p><p>Solution #1 simply nests the syntactic structures: You have a list slice <code>(...)[...]</code> inside a function call <code>say(...)</code>. Solution #2 (ab)uses the unary <code>+</code> operator, which is a no-op, but syntactically separates <code>say</code> from <code>(</code>, thus preventing <code>(</code> from being parsed as the start of an argument list.</p><p>But if you only want to extract the first "word" (chunk of non-whitespace) from a string, you could also use <code>say "Foo Bar" =~ /(\S+)/</code>.</p><p><a href="https://infosec.exchange/tags/perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perl</span></a></p>
Profoundly Nerdy<p>Dumb Perl question, because I'm insufficiently caffeinated, the answer isn't coming to me and my DDG-fu is failing me. Given the Perl one-liner that prints "Foo":</p><p>```<br>perl -E 'my <span class="h-card"><a href="https://bitbang.social/@a" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>a</span></a></span> = (split / /, "Foo Bar"); say $a[0]'<br># Foo<br>```</p><p>How do I rewrite it so that an intermediate variable is not required? Doing `say ( ... )[0]` won't work, because `()` controls precedence, it doesn't construct an array. Can't seem to make it work I'm annoyed. 🤦 </p><p><a href="https://bitbang.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> <a href="https://bitbang.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
Brad L. :verified:<p>Fixed a bug and reworked all the documentation for the CLI::Helpers 2.2 release. <a href="https://hachyderm.io/tags/perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perl</span></a> <a href="https://hachyderm.io/tags/cli" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cli</span></a> </p><p><a href="https://metacpan.org/pod/CLI::Helpers" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">metacpan.org/pod/CLI::Helpers</span><span class="invisible"></span></a></p><p>Perl has such a great ecosystem. Dist::Zilla, Pod::Weaver, Getopt::Long::Descriptive, Mojolicious, Moo, Type::Tiny. Handling <a href="https://hachyderm.io/tags/YAML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>YAML</span></a> is *so* much better in Perl than it is in any other language, bar none.</p>
Wolf<p>Why isn’t <a href="https://hachyderm.io/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> popular anymore? It’s got plenty of libraries.</p>
gugod<p><a href="https://metacpan.org/release/GUGOD/App-perlbrew-1.02" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">metacpan.org/release/GUGOD/App</span><span class="invisible">-perlbrew-1.02</span></a></p><p>It's there, perlbrew 1.02.</p><p><a href="https://g0v.social/tags/perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perl</span></a> <a href="https://g0v.social/tags/cpan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpan</span></a> <a href="https://g0v.social/tags/perlbrew" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perlbrew</span></a></p>
Jay Hannah<p>For context, the first time I recall a sales person telling me that their product was going to eliminate most computer programming jobs was in 1999. To my amazement, the product still exists: <a href="https://en.wikipedia.org/wiki/IBM_Informix-4GL" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">en.wikipedia.org/wiki/IBM_Info</span><span class="invisible">rmix-4GL</span></a></p><p>That was also the first year I was told <a href="https://flyovercountry.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> is dead.</p>
Gandalf<p>Want to learn how to make GUI apps with <a href="https://noc.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a>.</p><p>Where does one start?</p>
nemo™ 🇺🇦<p>Perl-Guru Matt Trout ist mit nur 42 Jahren verstorben. Sein Wirken prägte die Entwickler-Community tief und wird unvergessen bleiben. 🕊️💻 Ein großer Verlust für die IT-Welt. Mehr Infos hier: <a href="https://www.heise.de/news/Perl-Guru-Matt-Trout-ist-mit-42-Jahren-gestorben-10488234.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">heise.de/news/Perl-Guru-Matt-T</span><span class="invisible">rout-ist-mit-42-Jahren-gestorben-10488234.html</span></a> <a href="https://mas.to/tags/RIP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RIP</span></a> <a href="https://mas.to/tags/MattTrout" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MattTrout</span></a> <a href="https://mas.to/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> <a href="https://mas.to/tags/TechCommunity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechCommunity</span></a> <a href="https://mas.to/tags/newz" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>newz</span></a></p>