Perl Weekly
Issue #558 - 2022-04-04 - Perl Magic
latest | archive | edited by Mohammad Sajid Anwar
|
Hi there,
I wish you all a very Happy Ramadan. May ALLAH s.w.t. bless us all in the holy month.
Have you seen any Perl code that surprised you recently?
I have, only recently, found out that braces become optional when calling a subroutine, depending on when you call the subroutine. If a subroutine is defined before you call it in a script, braces are optional. If you call the subroutine in a script before it is defined (which is perfectly acceptable too), then braces are a must.
How about this calling sub add() passing two scalar parameters? add my ($x, $y) = (2, 3);
I also came across this blog post by Olaf Alders where he shares a very interesting use of '::' in package names.
Enjoy the rest of the newsletter.
Mohammad Sajid Anwar
|
|
|
Articles
|
by Olaf Alders (OALDERS)
A highly-recommended demonstration of perlimports and how to deal with edge cases.
|
|
|
by Helmut Wollmersdorfer (WOLLMERS)
An introduction to the "standard" pragma, which enforces Standard Perl syntax with Guacamole, with example code changes that may be required.
|
|
|
Discussion
|
by Martin McGrath
zlib (<1.2.12) has a serious memory corruption on deflate bug, reported as CVE-2018-25032. It is known to cause denial-of-service attacks. Please check your CPAN modules!
|
|
CPAN
|
|
|
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 among all of the contributors during the month. The monthly prize is kindly sponsored by Peter Sergeant of PerlCareers.
|
by Mohammad Sajid Anwar (MANWAR)
Welcome to a new week with a couple of fun tasks: "Farey Sequence" and "Moebius Number". If you are new to the weekly challenge, why not join us and have fun every week. For more information, please read the FAQ.
|
|
|
by Mohammad Sajid Anwar (MANWAR)
Enjoy a quick recap of last week's contributions by Team PWC dealing with the "Additive Primes" and "First Series Cuban Primes" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.
|
|
|
by Colin Crain
Perl Solutions Review by Colin Crain.
|
|
by Arne Sommer
The optimisation of the Raku solution is a highlight of the week. The explanation of key features of Raku is also great. Thanks for sharing.
|
|
by Colin Crain
The task analysis is the main attraction for me as always. The solution in Raku is also very catchy. Keep up the great work!
|
|
by Colin Crain
I liked Colin's discussion of the task much more than the Wikipedia definition, as it makes it so easy to follow. Thanks for sharing.
|
|
by Dave Jacoby (JACOBY)
Short and precise task analysis, with a catchy blog title as always! Thanks for everything.
|
|
|
by Flavio Poletti (POLETTIX)
Don't you like 'The questions' section? I liked it personally. Raku one-liners are really cool. Thanks for sharing your knowledge with us!
|
|
|
by Flavio Poletti (POLETTIX)
Flavio has been sharing Perl and Raku magic every week. Thank you for being so supportive of the Weekly Challenge!
|
|
|
by Jaldhar H. Vyas
A cool one-liner in Raku is the highlight for me, and the explanation makes it so easy to follow. Keep it up - great work!
|
|
by James Smith
The relative performance analysis of different approaches for Challenge 1 is a very useful inclusion here. I appreciate the hard work put in every week. Thanks for sharing your knowledge with us.
|
|
by Laurent Rosenfeld
The joy of getting a regular taste of Perl and Raku in one place. It has been source of great knowledge for years. Thanks for everything.
|
|
by Luca Ferrari
The Raku one-liner for the Additive Primes task is really cool! Thank you for all the support.
|
|
by W Luis Mochan
Luis once again came up with a great one-liner in Perl. Thanks for sharing.
|
|
by Peter Campbell Smith
Multiple versions of the task are provided! Thank you for sharing your knowledge with us!
|
|
by Roger Bell West (FIREDRAKE)
The modular solutions in Raku are very compact and easy to follow. Keep it up great work.
|
|
by Simon Green
A short and simple blog, with to-the-point discussion. Thank you for your support as always!
|
|
Rakudo
|
by Elizabeth Mattijsen (ELIZABETH)
An updated Comma roadmap, specifying trust between classes, calling code stored in a variable, core developments, and more!
|
|
|
Weekly collections
|
|
Events
|
Tuesday April 12th, 2021 07:00 PM Eastern Time (US and Canada)
|
|
|
Your day-to-day includes working with internet and development tech, web services, unit testing, and code review. You’ll work with the customer support team to respond to issues, implement new microservices, and squash bugs in Perl web applications and backend systems. You’ll be equally at home with Modern Object Oriented and legacy Perl.
|
|
Fueled by passion, these self-starters don’t require a lot of supervision, and they’re looking for the same from you. In addition to the ability to stay on task, you’ll have experience writing high quality Perl, HTML, JavaScript, and CSS. SQL and DBIx::Class is your bread and butter. If you enjoy writing your own tools using Perl, Bash, HTML, CSS, and JS, this is the role for you.
|
|
Working with first responders, educators, manufacturers, and engineers, our client is the leading provider of award-winning intelligent SaaS solutions. To help them keep doing that, they’re looking for a Perl developer with Catalyst and DBIx::Class.
|
|
Our client is at the pinnacle of the premium native advertising game for corporate, tech, financial services, and lifestyle technology. This role is for a Senior Developer who is equally comfortable with Perl AND Python.
|
|
These adaptable folks are an international company who pride themselves on making online trading a breeze. After twenty-plus years cruising the financial waters, they’re subject matter experts who provide a stable, engaging environment for their crew. Located in glorious Malta, they offer a supportive team that believes in open communication and solving problems together.
|
|
You know, you could get the Perl Weekly right in your mailbox. Every Week. Free of charge!
|