RogerBW, to raku
@RogerBW@emacs.ch avatar
ovid, to random
@ovid@fosstodon.org avatar

Hey, devs. Do you use DBIx::Class::Schema::Loader? Do you also use Perl::Tidy? You can get disappointed if Perl::Tidy reformats the dbic files, so drop this in your .perltidyrc to stop that:

Ignore DBIC-generated content

--format-skipping-begin='#(<<<| DO NOT MODIFY THE FIRST PART OF THIS FILE)'
--format-skipping-end='#(>>>| DO NOT MODIFY THIS OR ANYTHING ABOVE!)'

tripleo, to random
@tripleo@fosstodon.org avatar

All you nutcases still using , what's actually wrong with it?

aka What are the sharp edges?

leonerd,
@leonerd@fosstodon.org avatar

@tripleo If you want decent integration with 3rd party stuff (google APIs, amazon, etc...) you may need to write your own client stuff as most big service providers seem to have forgotten that exists

mjgardner, (edited )

@tripleo ’s “sharp edges” are mainly early syntax and features that later experience with large and networked found dangerous, but are preserved for backward (and we do mean “backward”) compatibility.

See the details of the strict and warnings pragmas, and successively missing items in feature bundles:

https://perldoc.perl.org/strict
https://perldoc.perl.org/warnings
https://perldoc.perl.org/feature#FEATURE-BUNDLES

And the summary of policies included in : https://MetaCPAN.org/pod/Perl::Critic::PolicySummary

ovid, to Lisp
@ovid@fosstodon.org avatar

, , and are three powerful programming languages that share a common feature.

Nobody knows how the hell to capitalize them.

toriver,
@toriver@mas.to avatar

@ovid Since Perl is an acronym for Practical Extraction and Reporting Language it used to be PERL.

tetrislife,

@ovid and programmers also complain they are not capitalized right.

@hetoug if Perl can be powerful, so can Javascript!

@tripleo

RogerBW, to raku
@RogerBW@emacs.ch avatar
ovid, to random
@ovid@fosstodon.org avatar

If any gurus want to take a look at a small bug in some code I wrote, I'd appreciate it. https://github.com/Ovid/unset-vars/issues/1

oalders, to programming
@oalders@fosstodon.org avatar

I'm handling sponsorships for this year's Perl and Raku Conference. Please share this far and wide so that we can get as many new sponsors as possible. ❤️

https://www.perl.com/article/this-is-your-opportunity-to-sponsor-the-perl-and-raku-conference-2024/

@perl @tag@relay.fedi.buzz

sjn,
@sjn@chaos.social avatar

@oalders @perl @tag@relay.fedi.buzz

Everyone! If your depends on or please consider supporting the communities you rely on!

One good way to ensure a sustainable future for ecosystems like these, is to support active and fertile venues for learning and teaching these technologies.

Right now, you can help by supporting the Perl and Raku Conference, and later this year, the London Perl Workshop.

Is this relevant for you? Forward it to your manager! 💯

ovid, to random
@ovid@fosstodon.org avatar

just wrote the following code for me, complete with the comment, which is correct.

my $UNINIT = bless => {}, 'Uninitialized::Vars::Variable';
sub uninit () { $UNINIT }
sub is_uninit ($var) { $var == $UNINIT } # XXX: This is wrong

charadon, to random
@charadon@8bit.red avatar

So, I know it's sacrilege to make your own "Build System", but for fun, I decided to give it a go.

It's made up of 3 scripts:

  • build.pl: Builds the project
  • clean.pl: Cleans up artifacts
  • install.pl: Installs artifacts where they need to go in the system.

build.pl was the most complicated, but that's not saying much, it was incredibly easy to make and it's small. It even supports parallel jobs and not rebuilding an object if the source file is older than the object.

charadon,
@charadon@8bit.red avatar

Now, would I use this in a big project? No way lol.

I can imagine things like subprojects would be a nightmare, and i'm a big fan of Meson/Muon. But it was a fun experiment to see what it's like. (Also, easier to make than a makefile, fuck makefiles.)

mjgardner,

@charadon Everything’s easy when it’s purpose-built for a small job that stays that way.

Related: https://mastodon.social/@raiderrobert/112374892719211951

Serpent7776, to random
@Serpent7776@mastodon.social avatar

I just wasted 1hr, because I used == instead of eq and 'and' instead of && in

Serpent7776,
@Serpent7776@mastodon.social avatar

@mjgardner Thanks, I have both use strict and use warnings, but the script produced quite some lines of output and I guess the warnings got lost it the output. I guess I should've redirected the output to a file to have stderr more visible.
I'm on perl v5.38.2 and I didn't know about use v5.36, but I'm not sure it changes anything.

mjgardner, (edited )

@Serpent7776 I’m sorry to hear about the warnings lost in the output.

Since you’ve got v5.38.2, write use v5.38; and in addition to strict and warnings you enable the following niceties from https://perldoc.perl.org/feature :

bitwise
current_sub
evalbytes
fc
isa
module_true
postderef_qq
say
signatures
state
unicode_eval
unicode_strings

You’ll also disable these footgun “features”:

bareword_filehandles
indirect
multidimensional
switch

Give it a whirl!

/ @perl

RogerBW, to raku
@RogerBW@emacs.ch avatar
mjgardner, to perl

@perl Remember folks, 's is a dromedary 🐪, not a Bactrian 🐫:

perl -CS -pe 's/\N{BACTRIAN CAMEL}/\N{DROMEDARY CAMEL}/gu'  
metacpan, to programming
@metacpan@fosstodon.org avatar
dave, to random
@dave@puz.fun avatar

Anyone here have experience updating a Dockerized Perl application? Specifically I am looking for help upgrading the app from 5.26 to 5.30 and how to rectify errors where some libraries (I think?) were built for Perl 5.26 and won't work under 5.30?

dave,
@dave@puz.fun avatar

@Htbaa I think that's what I'm running into, just not sure how to resolve it.

Htbaa,
@Htbaa@fosstodon.org avatar

@dave I usually solve that by installing the system package for the troublesome module. If available of course. Otherwise installing the dev libraries can help as well (with apt).

With MySQL I couldn’t install the new v5 version on the latest Perl 5.38 version so stuck with v4. For me that requires changing the version in my cpanfile.

If I’m not mistaken the official Perl Docker images come with most stuff installed.

RL_Dane, to raku
@RL_Dane@fosstodon.org avatar

Lol, and folks, I made a funny (in bash!)

#!/usr/bin/env bash

CD - uses my ulocate script and fzf to jump to any directory found within my home directory

set -u undeclared variables as errors

function warn {
echo "$" >&2
}
function swoon { # (something in between a warn and a die ;)
warn "$
"
exit 0
}
function die {
warn "$*"
exit 1
}

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • cubers
  • cisconetworking
  • osvaldo12
  • magazineikmin
  • Youngstown
  • thenastyranch
  • rosin
  • slotface
  • Durango
  • mdbf
  • khanakhh
  • megavids
  • tacticalgear
  • InstantRegret
  • normalnudes
  • modclub
  • ngwrru68w68
  • everett
  • GTA5RPClips
  • ethstaker
  • anitta
  • Leos
  • tester
  • provamag3
  • lostlight
  • All magazines