Tootfinder

Opt-in global Mastodon full text search. Join the index!

@domm@social.linux.pizza
2025-10-06 15:06:18

I brain coded a static image gallery in a few hours using #Perl #vibecoding domm.plix.at/perl/20…

@johl@mastodon.xyz
2025-12-03 09:51:24

“Perl’s early success was its own undoing. It became the default tool for the first web boom, and in doing so, it took the brunt of that era’s chaos. Then, just as it began to mature, its versioning story confused the industry into thinking it had stalled.” #Perl

@simon_brooke@mastodon.scot
2025-12-08 10:20:39

RE: #PERL to the

@xtaran@chaos.social
2025-11-25 15:28:56

#TIL you can concatenate "=~ s/…/…/r" in modern #Perl (in this case since Perl 5.14). Example:
my $a = "foobar";
my $b = $a =~ s/foo/bar/r =~ s/bar/fnord/r =~ s/fnord/gnarz/r;
say $b;
Output:
gnarzbar

@rasterweb@mastodon.social
2025-11-17 22:11:27

Python Folks, in my old Perl days I used HTML::Template, is there something comparable (or better) for simple HTML generation with templates in the Python world?
#python #html #perl

@domm@social.linux.pizza
2025-12-05 10:38:14

#AdventOfCode Day 5: My stupid part 1 solution was too slow (because I checked each ingridient instead of compare the ranges). After fixing that it was fast and correct. I have a plan for part 2, but $job to do, so let's see when I get a round tuit (to quote an old #Perl saying).

@mendel@hachyderm.io
2025-10-16 22:54:10

@… I've sent a bunch of people a link to #perl)

@domm@social.linux.pizza
2025-12-03 16:00:14

For day 3 of #AdventOfCode I outsmarted myself by using `each` on an array to get the index and the value, but forgot that #Perl does not reset the counter when you exit the loop early. (It worked for part 1, though..). After switching to a stupid c-style for loop it was easy (because I agai…

@domm@social.linux.pizza
2025-10-22 11:51:14

Today I used the venerable rename.pl tool to fix a bunch of filenames (from 1.png, 10.png etc to lw001.png): `rename 's/^(\d )\.png/sprintf("lwd.png", $1)/e' *.png` #Perl