Issue #558 - 2022-04-04 - Perl Magic

latest | archive | edited by Mohammad Sajid Anwar
This edition was made possible by the supporters of our cause.
Don't miss the next issue!

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

Making Dynamically Required Package Names More Discoverable in Perl

by Olaf Alders (OALDERS)

A highly-recommended demonstration of perlimports and how to deal with edge cases.

First impression of "use standard"

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

Possible security problem in CPAN modules / Zlib CVE-2018-25032

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

Email::Stuffer

by Flavio Poletti (POLETTIX)

A quick introduction to sending email with Email::Stuffer.

Split a PDF into individual pages

by Flavio Poletti (POLETTIX)

Using PDF::API2 to split a PDF into separate pages.


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.

The Weekly Challenge - 159

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.

RECAP - The Weekly Challenge - 158

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.

Perl Review - Perl Weekly Challenge - 154

by Colin Crain

Perl Solutions Review by Colin Crain.

Cuban Addition, Primarily with Raku

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.

Add Another Prime to the Pile

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!

Cubans In Their Prime

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.

In Our Primes

by Dave Jacoby (JACOBY)

Short and precise task analysis, with a catchy blog title as always! Thanks for everything.

PWC158 - Additive Primes

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!

PWC158 - First Series Cuban Primes

by Flavio Poletti (POLETTIX)

Flavio has been sharing Perl and Raku magic every week. Thank you for being so supportive of the Weekly Challenge!

Perl Weekly Challenge: Week 158

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!

The Weekly Challenge 158

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.

Perl Weekly Challenge 158: Additive Primes and Cuban Primes

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.

Perl Weekly Challenge 158: to be prime or not to be prime

by Luca Ferrari

The Raku one-liner for the Additive Primes task is really cool! Thank you for all the support.

Perl Weekly Challenge 158

by W Luis Mochan

Luis once again came up with a great one-liner in Perl. Thanks for sharing.

All about primes

by Peter Campbell Smith

Multiple versions of the task are provided! Thank you for sharing your knowledge with us!

Prime Cuban Additives

by Roger Bell West (FIREDRAKE)

The modular solutions in Raku are very compact and easy to follow. Keep it up great work.

It's a primathon!

by Simon Green

A short and simple blog, with to-the-point discussion. Thank you for your support as always!


Rakudo

2022.13 Roadmapping

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

Boston Perl Mongers Online Meeting - Topic TBD or round-table

Tuesday April 12th, 2021 07:00 PM Eastern Time (US and Canada)


Perl Jobs by Perl Careers

Spring has sprung! Remote Perl Role with UK and EU

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.

Remote and ready to run. Remote Perl role in UK

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.

Good (Perl) Humans Wanted. Remote Perl role in USA

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.

Is your Python as good as your Perl? Perl/Python role in London

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.

Cruise into this Dreamy Career. Perl role in Malta

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!

Just ONE e-mail each Monday. Easy to unsubscribe. No spam. Your e-mail address is safe.
Perl Weekly on Twitter RSS Feed of the Perl Weekly. Updated once a week