Issue #726 - 2025-06-16 - Perl and ChatGPT

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,

Most of us have explored and seen the power of ChatGPT. Last week, Dave Cross shared very interesting tool written in Perl to create podcast for the Perl Weekly newsletter. We already have podcast for Week #723, Week #724 and Week #725. I am very impressed with the content and sound quality. Great job, Dave. You can checkout the code in the GitHub repository.

Another post, Slice of Perl by Dave Cross inspired me to write about Array vs List in Perl.

For all Dancer2 fan, we have a good news, very soon there would be Dancer2 2.0.0 release. I am very excited and looking forward to it.

Enjoy rest of the newsletter.

Mohammad Sajid Anwar


Sponsors

OOP in Perl, Functional programming in Python, CLI in Rust

by Gabor Szabo (SZABGAB)

I have been teaching Perl for 25 years (and Python and Rust for a shorter period of time). Most of my courses were geared towards corporations and they are 3-4-5 days long, 8 hours a day covering a lot of subjects. Today it seems we need very short and very focused courses. So I am splitting my long courses into subject and will run those mini-courses. The first 3 I've announced are about Object Oriented Programming in Perl, Functional Programming in Python, and Creating a command line tool in Rust. Check out if any of these courses would be interesting to you or to some of your co workers! If you have question, send me an email.


Announcements

Upcoming Dancer2 2.0.0 release

by Jason A. Crome (CROMEDOME)

The Dancer Core Team is excitedly preparing a major release of Dancer2, 2.0.0. In advance of this, I'd like to give you all a preview of what to expect.


Articles

Analysing FIT data with Perl: interactive data analysis

by Paul Cochrane (PTC)

For more fine-grained analysis of FIT file data, it’d be great to be able to investigate it interactively.

Array vs List

by Mohammad Sajid Anwar (MANWAR)

Find out the subtle difference between Array and List in Perl.


Grants

The Weekly Challenge

The Weekly Challenge by Mohammad Sajid Anwar will help you step out of your comfort-zone. You can even win prize money of $50 by participating in the weekly challenge. We pick one champion at the end of the month from among all of the contributors during the month, thanks to the sponsor Lance Wicks.

The Weekly Challenge - 327

by Mohammad Sajid Anwar (MANWAR)

Welcome to a new week with a couple of fun tasks "Missing Integers" and "MAD". If you are new to the weekly challenge then why not join us and have fun every week. For more information, please read the FAQ.

RECAP - The Weekly Challenge - 326

by Mohammad Sajid Anwar (MANWAR)

Enjoy a quick recap of last week's contributions by Team PWC dealing with the "Day of the Year" and "Decompressed List" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.

The Day We Decompress

by Adam Russell

Well-commented, educational, and test-driven structure. Offers neat and idiomatic Perl solutions that avoid overengineering.

TWC326

by Ali Moradi

The solutions are clear, concise, and make good use of Perl's standard modules and operators. The second task uses manual iteration, which is easy to follow and avoids recursion or map-heavy constructs.

Decompressed Day

by Arne Sommer

Solutions are succinct, leveraging Raku's expressive standard library. Emphasizes type and input validation in the signature, promoting reliability.

Perl Weekly Challenge: Week 326

by Jaldhar H. Vyas

The post is well-written and shows how Raku and Perl handle the same problem with slight idiomatic differences.

The Length of a Day

by Jorg Sommrey

PDL offers elegant ways to handle list transformations via vectorized operations. The post illustrates a concise and advanced Perl style that values reuse and idiomatic tools.

Happy Birthday Ma’!

by Luca Ferrari

The post not only provides solutions in various programming languages and database systems but also emphasizes the importance of maintaining coding skills and learning new technologies. It showcase the versatility of different languages and tools in solving the same problem, providing valuable insights for developers interested in exploring multiple programming environments.

Perl Weekly Challenge 326

by W Luis Mochan

Solutions are characterized by their simplicity and effective use of Perl's features. The clear explanations and well-structured code make the blog post a valuable resource for Perl enthusiasts.

Modern Perl's Victory

by Matthias Muth

Concise and idiomatic Perl. Code is well structured and leverage robust date/time modules to avoid reinventing calendar logic.

Got a date with compression!

by Packy Anderson (PACKY)

Emphasizes the use of core Perl modules (Time::Piece) to avoid reinventing date logic. Mentions best practices such as handling context carefully in the decompression task.

Days to decompress

by Peter Campbell Smith

Clear demonstration of using CPAN modules to solve common problems. Concise, readable code snippets.

The Weekly Challenge #326

by Robbie Hatley

The solutions are complete and well-documented, providing clear explanations of the logic behind each step. It serves as an excellent resource for Perl programmers looking to improve their problem-solving skills and coding practices.

Day of the Decompression

by Roger Bell West (FIREDRAKE)

Provides a comparative analysis of how different programming languages approach the same problems, highlighting the diversity in language features and libraries. The post serves as an insightful resource for programmers interested in exploring multiple solutions to common problems across various languages.

Weekly Challenge 326

by Simon Green

It emphasizes the importance of using built-in functions for tasks like calculating the day of the year to avoid errors and simplify code. The solutions in both Python and Perl demonstrate clear and efficient approaches to the challenges.

Raku Weekly Challenge : Week 326

by Simon Proctor

The solutions demonstrate Raku's expressive syntax and powerful built-in methods, leading to clean and efficient code. The inclusion of input validation and user-friendly comments further enhances the quality of the solutions.

Perl Weekly Challenge #326

by Walt Mankowski

The solution efficiently handles the decompression task using Perl's list manipulation features. Solutions are concise and demonstrate effective use of Perl's modules and list handling capabilities.

The weekly challenge 326

by Yitzchak Scott-Thoennes

Solutions are notable for their clarity and efficiency, demonstrating a deep understanding of Python's capabilities. Exploration of both standard library functions and mathematical approaches provides valuable insights for Python enthusiasts.


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.

Object Oriented Programming - OOP in Perl

by Gabor Szabo (SZABGAB)

The first page of my new OOP booklet.


Rakudo

2025.23/24 Vibe codified

by Elizabeth Mattijsen (ELIZABETH)


Weekly collections

The corner of Gabor

A couple of entries sneaked in by Gabor.

Follow me on LinkedIn

by Gabor Szabo (SZABGAB)

If you use LinkedIn I'd like to invite you to follow me on that platform or if you like, send me a connect request. In that case, please include a note that you are are reader of the Perl Weekly newsletter.


Events

The Perl and Raku Conference 2025

Greenville, South Carolina, USA



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