Search
Items tagged with: Perl
#TodayIAchieved a faster implementation of named parameters to extended subroutines via my `Sublike::Extended` #perl module.
Not yet on CPAN until I've given it some more thorough testing to satisfy myself that it's stable and robust, but already it's showing good signs. Subs written using this are now over 30% faster than the equivalent plain perl approach using a slurpy hash.
The speed benefit on top of the existing "it's much shorter and neater to read" that it already had.
Company contacted me a while ago. Their only #Perl dev retired, can't find anyone local, and have a huge codebase to maintain. Too far to commute; they don't allow remote.
They tried again a few months later. Still must be onsite, they can't find anyone, won't pay for relocation. Oh, and it's a junior dev salary.
Months later and they're reaching out to me again. Must be onsite, underpaid, and no relocation.
The definition of insanity is ...
DBI has been the #Perl #programming language’s standard #database interface module since October 1994 when it was released coincident with version 5.000 of the language. Like Perl itself, it has continued to be a model of #OpenSource development and support.
https://fosstodon.org/@metacpan/113074361244015803
Prior to #DBI’s adoption, programs needed a bespoke compiled Perl 4 for any particular database system (e.g., #Informix, #Oracle, #Sybase). DBI provided a unified API for application and database driver developers.
Checking if standard input via pipe is available, re: How to Test For Empty Piped Input https://perlmonks.org/?node_id=11161507
#Perl
use v5.36;
-p *STDIN{q/IO/}
or die qq[No standard input pipe, exiting ...\n] ;
process( *STDIN{q/IO/} );
exit;
sub process( $source )
{
while ( my $line = <$source> )
{
print qq[got: <$line>];
}
return;
}
#
Getting too many time outs there :phbbttt:🎰
#perl
This "Useless use" message can be easily made by just having a statement with only a string literal inside. The message reads interestingly and rather high context -- meaning: readers need to learn at least a little bit about the concept of context in Perl programming language, to be able to understand that no words in that message are useless or void.
# perl x.pl
Useless use of a constant ("forty-two") in void context at x.pl line 3.
# cat x.pl
use v5.36;
"forty-two";
#Mojolicious has both #Perl (https://mojolicious.org) *and* #TypeScript (https://MojoJS.org) flavors now
/cc @mojolicious
Finally had enough of a certain huckster claiming he “wrote the #Perl compiler.” Let’s see if he loses his “chill.”
> I think @rurban might take issue with your use of the word “the.” And […] #RPerl […] compiles a bowdlerized modified dialect that resembles parts of Perl. (Or as you wrote, “RPerl stands for Restricted Perl”: http://rperl.org/faq.html#faq_what)
>
> It would be more honest to call it “NQPerl,” as in Not Quite Perl. And no amount of hype will change that.
Mohammad Sajid Anwar on LinkedIn: Is Perl Interpreted or Compiled? Understanding the Mechanism with Simple…
Is this yet another AI generated article? I am not sure, to be honest. https://lnkd.in/ewqivUygMohammad Sajid Anwar (www.linkedin.com)
On an upgrade streak at $work
I'm migrating a lot of #perl applications to 5.40 (released 2024-06-04)
Some of those applications were still running on 5.18 (released 2013-05-18)
The most I've had to change was some mis-feature that a third-party library deprecated and removed in the last few years. Everything else Just Works™
What's New on CPAN: July 2024
https://www.perl.com/article/what-s-new-on-cpan-july-2024/
#perl @perl @tag-perl #programming
https://github.com/chrisarg/task-memmanager
GitHub - chrisarg/task-memmanager
Contribute to chrisarg/task-memmanager development by creating an account on GitHub.GitHub
I’ve started building a thing. Not even close to done but thought this might be helpful to some people. #linux #ldap #software #perl
https://github.com/koreesmith/ldaputils
GitHub - koreesmith/ldaputils: A small set of perl scripts that makes managing ldap easier.
A small set of perl scripts that makes managing ldap easier. - koreesmith/ldaputilsGitHub
Hey, fellow software developers! Sometimes code passes your code bad data. Do you throw exceptions? Return false? Hope for the best? (YOLO)
Would love to hear your reasons why. And please share so other developers can weigh in.
#Developers #Software #SoftwareDevelopers #OpenSource #DivideByZeroAndConquer #Perl #Ruby #Python #Java #CSharp #NodeJS
- Exceptions (71%, 81 votes)
- Return values (23%, 27 votes)
- YOLO (5%, 6 votes)
https://github.com/saiftynet/particles
GitHub - saiftynet/particles: Simulations for particle motion
Simulations for particle motion. Contribute to saiftynet/particles development by creating an account on GitHub.GitHub
Amazon::S3
A portable client library for working with and managing Amazon S3 buckets and keys.MetaCPAN
I accidentally discovered that's entirely possible to implement an entire blog as a #Perl one-liner
This is a terrible idea so I'm definitely going to keep expending it
“The ‘Go to Line’ panels will now disregard commas and periods in entered line numbers, because that's apparently a thing.”
A 20-user #BBEdit license costs US $1,199.80.
The #Perl programming language allows single underscores in numeric literals to aid readability: https://perldoc.perl.org/perldata#Scalar-value-constructors
Commas, dots, spaces, underscores, apostrophes, and even half- or thin spaces are used to group digits depending on the country and context: https://en.wikipedia.org/wiki/Decimal_separator#Digit_grouping
It's a thing.
"The Perl 5 web application performance monitor"
"Application Performance Monitoring for Mojolicious and Plack apps"
#perl @perl @tag-perl #programming
Slapbird APM - the Perl web-service APM
Slapbird APM is a Perl 5 web-application APM built for Mojolicious and Plack web services. Providing insights into application performance, and request times.slapbirdapm.com
The backwards compatibility of #Perl software is wonderful. That’s why it’s all the more jarring when you find a package that doesn’t work. This is the story of a 15-year-old bug that I managed to track down and, fortunately, resolve.
https://peateasea.de/fixing-a-fifteen-year-old-curve-fit-bug/
Fixing a fifteen-year-old curve fit bug
The backwards compatibility of Perl software is wonderful. That’s why it’s all the more jarring when you find a package that doesn’t work. This is the story of a 15-year-old bug that I managed to track down and, fortunately, resolve.Paul Cochrane (P.T.C.)
- In the regex section, include a blurb for "/r", "/a" & "/aa" flags.
- In the "sub" section, show the the version with signatures, stable since v5.36.
I was going to suggest addition of a blurb about try-catch(-finally), but even for v5.40 that is listed as "partly experimental" 😫
https://metacpan.org/release/HAARG/perl-5.40.0/view/lib/feature.pm#The-'try'-feature
#Perl
What do you think about making (me) a new version of this here https://learnxinyminutes.com/docs/perl/
(I like the way the most important features of a programming language are summarized)
where modern Perl features are explained (e.g. subroutine's formal parameters etc.)?
What else would you like to see in such a short introduction without wanting to include everything that has been available in Perl for some time?
#perl
@kevingranade @Uilebheist At some point, a penny drops.
"Oh! Why not just go all in with #perl? It is – after all – Open Source."
I dunno, maybe start by looking at the man page, which is mentioned along with the official #Perl web site when you run `perl -v` to see what version you’ve got?
> Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".
> If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page
The Perl Programming Language - www.perl.org
The Perl Programming Language at Perl.org. Links and other helpful resources for new and experienced Perl programmers.www.perl.org
\x{...}
.#perl
I didn’t realize that was part of the official #GitHub Desktop package.
They’re gonna have an interesting time when #Apple makes good on its five-year-old deprecation of #Perl from #macOS: https://TidBITS.com/2019/06/25/apple-to-deprecate-scripting-languages-in-future-versions-of-macos/
#PHP and #Python 2.7 already got the axe.
Current macOS #Sonoma 14.6.1 ships with #Bash 3.2.57 (deprecated in favor of #Zsh), Python 3.9.6, Perl 5.34.1, #Ruby 2.6.10, and #Tcl 8.5.9, all of which issue deprecation warnings on startup.
Apple to Deprecate Scripting Languages in Future Versions of macOS - TidBITS
Apple says future versions of macOS won’t include a number of open-source scripting languages. The impact of this change will vary depending on the audience, but it will affect more people than you might think.Curtis Wilcox (TidBITS Publishing Inc.)
$ perl -E 'say "positive" if(shift() + 0 > 0)' "information"
positive
$ perl -E 'say "positive" if(shift() + 0 > 0)' "in formation"
$
LOL #perl
29 years ago, on 1995-08-16, #CPAN received its first module upload. Like #Perl, "it continues to flourish into its third decade thanks to a vibrant community of users and developers."
Celebrate the occasion with a weekend project to:
- upload a new distribution or a new release
- contribute to a project which keeps your solutions possible
- write a post about your favorite module
- thank, support, and hire the maintainers you depend on
Happy CPAN day, and happy hacking! How do you celebrate?
Dave Cross follows up on his previous post about deploying Dancer apps.
https://www.perl.com/article/deploying-dancer-apps-addendum/
#perl @perl @tag-perl #programming
Deploying Dancer Apps (Addendum)
Some more thoughts about deploying Dancer apps as persistent daemonsPerl.com
OpenCage has been a generous sponsor of MetaCPAN for some time now. Co-Founder @freyfogle explains why OpenCage uses Perl and why supporting Open Source is important.
https://www.perl.com/article/why-we-sponsor-metacpan-opencage/
#perl @perl @tag-perl #programming
For $work I am currently forced to write some #PHP. I am not used to that and can probably be considered biased 😅
But I really have a hard time working on #PHPunit tests because I find many of its methods are not clearly documented. It seems to have loads of examples that help you getting into it but extending existing code is hard when you can’t look methods by name …
#Perl’s Test-Simple was always great and adopting its successor Test2 was a pleasure with its great docs! 🤩