Me in 2005: Man, I wonder if Perl 6 will ever get here. Thankfully Perl 5 is still great!
Me in 2025: Man, I wonder if Perl 7 will ever get here. Thankfully Perl 5 is still great!
Don't get mad at me, #Perl peeps. I love you. At least you value backwards compatibility! *COUGH* *COUGH*
Disclaimer: I haven't seriously written any Perl code in a long time, but the language still has a special place in my heart.
Nah Bitch, now you're on *My Family's Turf*.
I asked Google for an #ASCII ART generator (because this isn't my machine, I have two bookmarked) so and "AI" was all up in my space "Let Meeee do your ASCII Art!!!
Fucker, I'mma go find some site that looks like it's from 1998, probably using #Apache and #CGI to rattle less than a hundred lines of stale, crufty, #PERL code, if ... *IF* someone didn't #monster_bash it out.
Logging into my #NextCloud to get my fucking #bookmarks because fuck this.
A new version of CatalystX-Test-MockContext was uploaded to #CPAN
This release is mostly documentation and build tweaks.
https://metacpan.org/release/RRWO/CatalystX-Test-MockContext-0.000004
The try/catch feature in #Perl is weird.
Not in any functional way, mind, it's great that we don't have to eval anymore, and so on.
But the lack of `my` when spawning the error variable grinds my strict gears real bad.
```perl
try {
die "sutin";
} catch (my $err) {
say "died of $err";
}
```
is a grave error and the compiler complains:
> Can't redeclare "my" in "our" at -e line 1, near "(my"
> syntax error at -e line 1, near "(my "
It sticks out like a sore thumb.
Here's an excellent tutorial by Paul Cochrane on building Map::Tube modules for Perl. If you're looking to create route-finding functionality for public transit systems, this is a great starting point. Paul walks us through setting up a module from scratch using test-driven development to implement a tram network for Hannover, Germany.
This is part one of a five-part series.https://www.perl.com/article/building-map-tube-maps-a-howto-first-steps/
I can't remember if I asked this already, but I'm not seeing any search results...
Any #Perl #PerlDev folks able to shed some light on my issue installing Alt::Devel::CallParser::ButWorking ? I get an error but it's unclear how to remediate.
I'm trying to install it in an #AlpineLinux 3.19 Docker image -- it installs fine on Alpine 3.14. In 3.19, I get:
error building lib/Devel/CallParser.o from 'lib/Devel/CallParser.c' at /usr/share/perl5/core_perl/ExtUtils/CBuilder/Base.pm line 185.
Different languages are good at different things.
People have mocked #Perl for being a "write only" language, but I feel like the Perl community should take pride and own that slur - you don't need to constantly read and re-read and re-re-read (and edit) the Perl code, because it just keeps working.
Not so with #Python. Python will deprecate your shit and you will NEED to re-read that code so you can make pointless edits to keep it working.
@veer66
Both statements can be true!
Perl's TIMTOWTDI slogan, "There Is More Than One Way To Do It" is a feature to the enlightened and a flaw to prescriptivists who recoil from "choice is good".
("Perl doesn't have a Rails" - Right, it doesn't have a=one, it has choice of seven, where seven is a variable.)
Predictability is intentional. Perl5 for a decade put compatibility ahead of progress; techniques to allow both have revived progress without sacrificing compatibility.
#perl5 #perl
Breaking data.table in #rstats.
This was noticed by our brilliant data analyst Hamza Mir, when analyzing a 10 #gigarow #EMR dataset. #fread will assign a name to each row, i.e. the row number. If the number of lines exceeds 2^31, then a long vector of names has to be generated and R does not support those apparently (yet).
Reproducible example (#Perl code to generate a very large dataset on left, and #rstats output with failure).
ALT-text for code.
See also https://stackoverflow.com/questions/76456801/data-tablefread-fails-for-larger-file-long-vectors-not-supported-yet
Data Munging With Perl [2ed]: Techniques for data recognition, parsing, transformation and filtering https://leanpub.com/datamungingwithperl by Dave Cross is the featured book on the Leanpub homepage! https://leanpub.com #Perl #DataStructures #SoftwareEngineering #books #ebooks #programming #datascience
Your desktop dictionary may not include it, but 'munging' is a common term in the programmer’s world.
Find it on Leanpub!
I can't really figure this one out, please help.
I have a whole bunch of modules that layer on each other and I decided to try to use Mojo::Promise to go async. After running into issues I tried to mock some code on the command line and both M:P and Future do the same in that the inner "then"s do not seem to do anything.
```
sub outer{my $p=inner()->then(sub{say "o"}); $p}
sub inner{my $p=Mojo::Promise->new->then(sub{say "i"});$p->timer(1); $p}
outer->wait();
```
prints o only.
Shocking news!
“perl -c script.py” will give you tons of errors!
Apparently it's getting to be too late to get any complex programming done tonight, then.
About 25 years ago, I disliked that so many Debian tools were written in Perl because the language allowed too many ways to do the same thing. Now, I consider Perl 5 mature and predictable compared to Python 3.
A favorite hobby of mine has become collecting outdated, preferably chintzy, tech books. My most recent is the MS-DOS 6.2 guide.
Si vous avez une solution ou un site exposé sur Internet avec Perl (v5.34 à v5.40), prenez 1 min pour lire ceci
Une faille heap buffer overflow dans l’opérateur tr/// permet de planter Perl via une simple ligne de code :
perl -e '$_ = "\x{FF}" x 1000000; tr/\xFF/\x{100}/;'
Portails d'hébergements mutualisés
Scripts Perl manipulant des entrées utilisateur
Stacks locales (ex : XAMPP)
Mettez à jour en 5.40.2 ( https://metacpan.org/release/SHAY/perl-5.40.2/changes) ou 5.38.4 (https://metacpan.org/release/SHAY/perl-5.38.4/changes)
cPanel
https://docs.cpanel.net/changelogs/110-change-log/#110058