Perl Weekly
Issue #726 - 2025-06-16 - Perl and ChatGPT
latest | archive | edited by Mohammad Sajid Anwar
|
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
|
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
|
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
|
by Paul Cochrane (PTC)
For more fine-grained analysis of FIT file data, it’d be great to be able to investigate it interactively.
|
|
|
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.
|
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.
|
|
|
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.
|
|
|
by Adam Russell
Well-commented, educational, and test-driven structure. Offers neat and idiomatic Perl solutions that avoid overengineering.
|
|
|
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.
|
|
by Arne Sommer
Solutions are succinct, leveraging Raku's expressive standard library. Emphasizes type and input validation in the signature, promoting reliability.
|
|
by Jaldhar H. Vyas
The post is well-written and shows how Raku and Perl handle the same problem with slight idiomatic differences.
|
|
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.
|
|
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.
|
|
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.
|
|
by Matthias Muth
Concise and idiomatic Perl. Code is well structured and leverage robust date/time modules to avoid reinventing calendar logic.
|
|
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.
|
|
by Peter Campbell Smith
Clear demonstration of using CPAN modules to solve common problems. Concise, readable code snippets.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Rakudo
|
|
Weekly collections
|
|
The corner of Gabor
A couple of entries sneaked in by Gabor.
|
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
|
Greenville, South Carolina, USA
|
|
You know, you could get the Perl Weekly right in your mailbox. Every Week. Free of charge!
|