DEV Community

Gabor Szabo
Gabor Szabo

Posted on • Originally published at perlweekly.com

Perl 🐪 Weekly #726 - Perl and ChatGPT

Originally published at Perl Weekly 726

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.

--
Your editor: Mohammad Sajid Anwar.

Sponsors

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

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 any question, send me an email ([email protected]) or contact me via LinkedIn or join our Telegram channel.


Announcements

Upcoming Dancer2 2.0.0 release

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

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

Array vs List

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


Grants

Maintaining Perl (Tony Cook) April 2025

PEVANS Core Perl 5: Grant Report for May 2025

Maintaining Perl 5 Core (Dave Mitchell): May 2025


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

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

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

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

TWC326

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

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

Perl Weekly Challenge: Week 326

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

The Length of a Day

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’!

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

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

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

Got a date with compression!

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

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

The Weekly Challenge #326

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

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

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

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

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

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

The first page of my new OOP booklet.


Rakudo

2025.23/24 Vibe codified


Weekly collections

NICEPERL's lists

Great CPAN modules released last week.


The corner of Gabor

A couple of entries sneaked in by Gabor.

Follow me on LinkedIn

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 joined the Perl Weekly to get weekly e-mails about the Perl programming language and related topics.

Want to see more? See the archives of all the issues.

Not yet subscribed to the newsletter? Join us free of charge!

(C) Copyright Gabor Szabo
The articles are copyright the respective authors.

Top comments (0)