Perl Weekly
Issue #497 - 2021-02-01 - perl.com was hijacked
latest | archive | edited by Gabor Szabo
|
Hi
The big news of the week is that perl.com was hijacked. According to what I have read the solution seem to be already on its way to recover the domain. If you are using a perl.com host for your CPAN mirror you should use www.cpan.org instead (See this post.) You can also find the content of perl.com on perldotcom.perl.org. Ask brian d foy (brian.d.foy@gmail.com) for further details. (See also on Reddit.)
I'd like to thank all the people who answered my call 2 weeks ago and started to support Manwar. He went from 21 to 30 patrons. Let's do another round of this! If you have been reading the Perl weekly and would like to show you appretiation to Mohammad who is the most prolific co-editor of the newsletter, then the easiest way to do so is to sign up to his Patreon account and buy him a coffee every month.
In other news Perl 5.34 will be released in May.
Finally, remember, I've opened the Code Maven school where I already have 4 Perl courses, 3 Python courses besides the Go, Docker, and Git courses. Check them out and let me know what you are missing from there.
Enjoy your week!
Gabor Szabo
|
|
|
Sponsors
|
If you use GitHub Actions for your CI/CD you know it doesn't treat Perl as a first class citizen. This tutorial-style post can help you learn how to deploy a prebuilt Perl environment into GitHub Actions, simplifying and speeding up your CI/CD.
|
|
Announcements
|
|
by Jason A. Crome (CROMEDOME)
A bunch of small new features, enhancements, and bug fixes. The announcement even mentions my little contribution, setting up GitHub Actions for Continuous Integration.
|
|
|
by Jonas Brømsø Nielsen
Workflow - A Simple, flexible system to implement workflows. Written in Perl.
|
|
Articles
|
by Mark Gardner
Though they are still marked as 'experimental', function signatures have been around for more than 6 years now! To comment visit the dev.to copy of the article or reddit
|
|
|
by David Farrell (DFARRELL)
Perl uses a simple form of garbage collection (GC) called reference counting. Every variable created by a Perl program has a refcnt associated with it. If the program creates a reference to the variable, Perl increments its refcnt. Whenever Perl exits a block it reclaims any variables that belong to the block scope. If any are references, their referenced values' refcnt are either decremented or they're reclaimed as well if no other references to them remain.
|
|
|
Testing
|
by Takahiro Kudo
A simple wrapper script, but IMHO even in such simple scripts it would be better to include the safety boilerplate. If for no other reason then to have better copy-paste templates for other people.
|
|
The corner of Flavio Poletti
|
by Flavio Poletti (POLETTIX)
Realizing the folly of their present-exchange rules, the Elves agree to instead steal presents from the Elf directly across the circle. If two Elves are across the circle, the one on the left (from the perspective of the stealer) is stolen from. The other rules remain unchanged: Elves with no presents are removed from the circle entirely, and the other elves move in slightly to keep the circle evenly spaced.
|
|
|
by Flavio Poletti (POLETTIX)
I was very happy to get past puzzle 19 from the 2016 edition of Advent of Code, but let's admit two facts: I didn't demonstrate that the heuristic is actually a rule; This wouldn't help in some other general case.
|
|
|
|
by Flavio Poletti (POLETTIX)
An iterator-based implementation of Permutations with Heap's Algorithm. You saw it coming.
|
|
|
by Flavio Poletti (POLETTIX)
On with Advent of Code puzzle 24 from 2016: a brute-force approach to a problem similar to the Traveling Salesman Problem.
|
|
|
Grants
|
|
|
|
The Weekly Challenge
The Weekly Challenge by Mohammad Anwar will help you step out of your comfort zone. You can even win prize money of a $50 Amazon voucher by participating in the weekly challenge. We pick one winner at the end of the month from all the contributors during that month. The monthly prize is kindly sponsored by Peter Sergeant of PerlCareers.
|
by Mohammad Sajid Anwar (MANWAR)
Welcome a new week with a couple of fun tasks "Read N-characters" and "Search Insert Position". If you are new to the weekly challenge then why not join us and have fun every week. For more information, please read FAQ page.
|
|
|
by Mohammad Sajid Anwar (MANWAR)
Enjoy a quick recap of last week's contributions by Team PWC dealing with the "Caesar Cipher" and "Binary Substrings" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.
|
|
|
by Aaron Smith
Aaron's blog is the best source for Raku magic.
|
|
by Adam Russell
Adam made use of a bitwisw operator to solve the binary substrings task. You don't want to miss it.
|
|
|
by Abigail
Abigail not only sharing Perl solutions but many more. Highly Recommended.
|
|
by Abigail
Cool solution to the Binary substrings task. Must read.
|
|
by Arne Sommer
Arne also used a bitwise operator to solve the binary substrings task. He also shared Perl solutions.
|
|
by Colin Crain
Colin is testing our German in his blog post. A very enjoyable read, highly recommended.
|
|
by Dave Jacoby (JACOBY)
Dave made use of Levenshtein Distance to deal with the binary substrings task.
|
|
|
by James Smith
James's one liner for Caesar Cipher task is impressive. Even the binary substrings solution is very clever.
|
|
|
|
by Lance Wicks (LANCEW)
Lance is back after short break with a blog post promoting TDD. Must Read.
|
|
by Laurent Rosenfeld
Laurent's blog is, as always, full of magic - whether it is Perl or Raku.
|
|
by Luca Ferrari
Luca kept the Caesar Cipher task simple and easy to follow.
|
|
by Roger Bell West (FIREDRAKE)
Roger built a hash map for Caesar Cipher task. His olution to the binary substrings task is very clever too.
|
|
by Simon Green
Simon made the tasks look simple by breaking them into smaller tasks.
|
|
by W Luis Mochan
Luis shared solutions with examples which is always handy.
|
|
Perl Tutorial
A section for newbies and for people who need some refreshing of their Perl knowledge. If you have questions or suggestions about the articles, let me know and I'll try to make the necessary changes. The included articles are from the Perl Maven Tutorial and are part of the Perl Maven eBook.
|
by Gabor Szabo (SZABGAB)
It is quite simple using Test::CSV, but if your file is simple you can also solve this by using split and join.
|
|
|
Other
|
by Dave Rolsky (DROLSKY)
It might not be as interesting as predicticng the Coronavirus or as volatile as US politics, but I'd love to see your predictions for Perl 7, Raku, Go, and Rust. I had some other, more political ideas, but I think I'll leave them out now.
|
|
|
Weekly collections
|
|
The corner of Gabor
A couple of entries sneaked in by Gabor.
|
by Gabor Szabo (SZABGAB)
There are currently 4 Perl courses you can get one-by-one, all of them in a single bundle using a one-time payment or a monthly subscription.
|
|
|
|
|
Events
|
Wednesday, February 10, 2021
|
|
Thursday, February 4, 2021; 6:30 PM PST
|
|
Wednesday, February 24, 2021
|
|
Thursday, February 25, 2021
|
|
It will take place online between March 24-26 2021. The private ticket will be cheaper (EUR 30). People who register in time and transfer the participation fee, will get exclusive extras.
|
|
|
The leader in premium native advertising for technology, financial services, and corporate and lifestyle sectors, our client is the power behind the advertising throne for over 200 websites, including Forbes, Wall Street Journal, CNN Business, and The Washington Post. This dynamic team is looking for a senior Perl programmer with a strong understanding of Go.
|
|
Bricks-and-mortar malls may be passé but having a real-time office to come to when the pandemic ends is a major perk. While work for this client is currently 100% remote, their main office is in St. Ingbert, Germany with a satellite office in Munich. The ideal candidate should be confident using Modern Perl, in particular happy with DBIx::Class and Moose/Moo.
|
|
The client is interested in anyone with experience building web apps in Perl, using one of the major Perl frameworks. If you’re a crack-hand with Catalyst, a Mojolicious master, or a distinguished Dance, they want you. If you’ve got mad Perl skills and a hankering to mine the sandbox of data waiting for you, grab your shovel and pail and drop us an email!
|
|
Leisure travel might be on hiatus, but if wanderlust has you eager to be somewhere else, why not consider working in a new country? Perl developers, pack your bags: your next big adventure awaits. Our client is looking for Perl developers who are comfortable with Moose and PSGI/Plack, and have a solid grounding in using Perl’s testing tools.
|
|
Not all jobs are created equal. Sure, most pay the bills, but some do more. They impart a sense of purpose; when you log out at day’s end, it’s with the satisfaction that you are part of something bigger, something more important than yourself. You’ve left the world a little better than you found it, and isn’t that what life is really about?
|
|
You know, you could get the Perl Weekly right in your mailbox. Every Week. Free of charge!
|