Skip to main content

Search

Items tagged with: Perl


Y’all know I’m the first to crow about unique #Perl features, but #RegularExpressions’ syntax of ^ for the start of a line or string and $ for the end dates back at least to #Unix co-author Ken Thompson’s rewrite of the `qed` text editor for the #CTSS operating system on the IBM 7090 #mainframe at #BellLabs around 1970. (Perl creator Larry Wall was a teenager at the time.)

#retrocomputing #regex


Content warning: perl help


“#PERL: NOT JUST FOR #UNIX
One of the first articles that introduced Perl to BYTE readers
Vía @unix_byte


@Perl There’s something to be said for putting a small speed bump in front of #developers before they can post #software to a well-indexed central repository: “One In Two New #npm Packages Is #SEO #Spam Right Now” https://blog.sandworm.dev/one-in-two-new-npm-packages-is-seo-spam-right-now

How to start with #Perl’s #CPAN via #PAUSE:
1) Read https://www.cpan.org/modules/04pause.html
2) Visit https://pause.perl.org

#JavaScript #Node #NodeJs #NpmJs #Yarn #MetaCPAN


Encontrar enlaces rotos en sitio web #desarrollo_web #html #software_libre #enlaces #perl #página_web #w3c_link_checker https://freakspot.net/encontrar-enlaces-rotos-en-sitio-web/


The Future of Perl https://ovid.github.io/articles/the-future-of-perl.html | https://lobste.rs/s/dq6ysc #perl #plt
#Perl #plt


#Music #Math #Programming Nerds - I mentioned the creation of this #perl module previously, but now it's fully documented, functionally updated, and possibly even useful! Woo! Here's a writeup: https://ology.github.io/2023/03/02/creating-rhythms-with-perl/


If you're interested in Programming Languages, parsers, interpreters, etc and, like me, you "think in #Perl" then do yourself a favor and check this out! http://www.billhails.net/Book/front.html

This has been around for a while, but it is very high quality and I am not sure how many people are aware of it. It is definitely something that is in my @Perl toolbox.


For The Weekly Challenge 202.2 ("Widest Valley") I decided early on that a Finite State Automata would be a good clean solution. I am not sure if that is totally correct.

In #Perl I used the FSA::Rules module. https://metacpan.org/pod/FSA::Rules

A nice touch is that you can export the states as a graph, which looks quite nice when drawn via GraphViz.

That "move" state could be called something like "initialize", but otherwise you can get a sense of the moves up and down "slopes" to detect the "valley".
#Perl


There's a ton of stuff done under the hood in the example I'm replying to (locking tables, messaging, logging, exception handling, and so on) that never bubbles up to this level.

Oh, and yes, that example shows perfectly how easy it is to read well-written #perl code.

When #ChatGPT can be fed an entire codebase, *that's* when we should be worried.


5 great Perl scripts to keep in your sysadmin toolbox | Enable Sysadmin
https://www.redhat.com/sysadmin/perl-scripts

#perl
#Perl


If any of you use the excellent #sqitch (https://sqitch.org/) tool for database change management, I wrote this tool a couple of years ago. It adds a `sqitch grep` command that shows you the matching sqitch changes in the order they were added.

This makes it *much* easier to follow the order in which changes happened in your database.

#perl

https://gist.github.com/Ovid/fd8ba5b758f86b02f1c5f2a0a75c88f4


Looking through this collection, it looks like you can use at least the following programming languages to write programs in #DOS :
#C #rexx #prolog #asm #ada #basic (several BASIC dialects, some compiled even) #forth #Cpp #pascal #modula2 #lisp #smalltalk #fortran #cobol #logo #perl #python


Insomnia... So I've created & uploaded https://metacpan.org/pod/Chemistry:😛eriodicTable which is destined to become better... #perl
#Perl


Converting Object-Oriented Code to Corinna
https://ovid.github.io/articles/converting-object-oriented-code-to-corinna.html

#perl #corinna


DateTime is a great example of the second part of the #Perl maxim: “Make easy things easy and hard things possible.”
#Perl


Most calendars default to the currently preferred time zone, and some (I tested #GoogleCalendar, #Microsoft #Outlook, #ProtonCalendar) don't support floating time zones at all. Proton Calendar out-and-out refuses to process invitations sent with a floating time zone.

This is more of a tip for automated systems, e.g. using DateTime, which is why I sent it to the @Perl group and tagged it #Perl.


@Perl TIL what the “floating” time zone is for, practically—it’s so you can block off time that’s always local to you, like a lunch break or a reminder to take medications. It’s also useful if you’re planning a long-distance trip and you think it’s weird that events like dinners appear at non-intuitive times.

#Perl’s popular DateTime module defaults to floating and warns against comparison or math with real times: https://metacpan.org/pod/DateTime#Floating-DateTimes


I am the lead designer on the #Corinna project to bring modern OOP to the #perl language.

https://github.com/Ovid/Cor/blob/master/pod/perlclasstut.pod

I ported two-decade old code to use the new syntax and learned the Corinna spec is flawed because I couldn't port it cleanly! Oh shit!

After a couple of hours of writing and rewriting the explanation, I discovered Corinna is not flawed. It was my original OO design that was broken.

Many Perl developers are going to discover they don't actually understand class-based OOP.


#perl is still a great choice! This is a post which I wrote a few months ago, but I didn't share it yet on the Fediverse! https://foo.zone/gemfeed/2022-05-27-perl-is-still-a-great-choice.html #perl5 #perl7 (also includes a small paragraph about #perl6 #raku #RakuLang) @Perl


@Perl@plicease's #WebAssembly in #Perl distribution https://metacpan.org/pod/Wasm (using #Wasmtime) now has competition in the form of Felipe Gasper's #Wasmer-based https://metacpan.org/pod/Wasm::Wasmer.

With @PerlFFI's ability to build Perl extensions in C, C++, #Rust, #GoLang, #Pascal (!), #Fortran (!!), and even #assembly (!!!), you can plug just about any high-performance code into Perl.

#programming #coding #SoftwareDevelopment


My current contract has been absolutely amazing. Sadly, it's also ending at the end of the year. I'm looking for a new contract.

My work for the last two years has been with one of the world's largest companies cleaning up their #perl code to handle #gdpr, #sox, #pii, and #authorization. I designed and built a system that replaced almost 70 different #oop classes with a single config file.

Please boost for visibility.

You can read a case study of one project at https://ovid.github.io/articles/project-500.html


This Week in #Perl Steering Council (#PSC)

* Posted the smartmatch deprecation message to p5p@
* Sent off a reminder that we're looking for help on getting SSL support out of the box.
* Reviewed the RFC tracker and found some that nobody has started implementing; they are nearing their expiry time.

https://blogs.perl.org/users/psc/2022/12/this-week-in-psc-089.html
#Perl #psc


This thread highlights one of the key differences between the design processes behind #RakuLang and #Perl.

Raku's design all came from the question "What could I build if I could basically start again from scratch? What ideas might I have? How do I build a coherent whole from this blank canvas?"

Perl's ongoing design is all rooted in "What would I use right now in this real code I am writing today? What features would I like to have that I currently do not?"

https://fosstodon.org/@leonerd/109417700811336648


That map is redundant since it's just taking the current element of the list and returning it.

Also, the List::Util module that comes with #Perl gives you the sum0 function to sum a list but using 0 if given an empty list, so you don't need your bespoke total function.

You can just do this:

use List::Util 1.26 'sum0';
sub above_average {
return grep {$_ > sum0(@_) / @_} @_;
}


Who says #perl is impenetrable or opaque? I just came up with this beauty that takes a list of numbers and returns just those that are above average (Chapter 4, Exercise 3 from the 7th edition of "Learning Perl")! 😂
sub above_average {
    return map { $_ } grep { $_ > total(@_) / @_ } @_;
}
#Perl


I did a fun Sunday hacking stream on Twitch, and wrote the #Perl bindings for #GTK 4 and #libadwaita

- https://gitlab.gnome.org/ebassi/perl-gtk4
- https://gitlab.gnome.org/ebassi/perl-adwaita

They are barebones, but they work, so I'll finish the docs and publish them on CPAN—if I can find my old PAUSE credentials.


Thanks for the link to Tom H's "Perl to Rust", https://oylenshpeegul.gitlab.io/from-perl-to-rust/introduction.html
-- I have been looking for something like that for going from #Perl|#Python. I think I did go through some (one?) "Python to #Rust" articles but felt somewhat superficial.


I wrote a note:

From Perl to Rust

#Rust #Perl #Blog

https://randomgeekery.org/post/2022/10/from-perl-to-rust/


Building a Microservice in Perl (Part 2): Up and Running - DZone Microservices
https://dzone.com/articles/building-a-microservice-in-perl-part-2-up-and-running

#Perl
#Perl


Building a Microservice in Perl (Part 1): Designing the API - DZone Microservices
https://dzone.com/articles/building-a-microservice-in-perl-part-1-designing-the-api

#Perl
#Perl

Este sitio web utiliza cookies. Si continúa navegando por este sitio web, usted acepta el uso de las cookies.