Perl Hacks: Just another Perl hacker’s blog

  • Counting Weekends and Wrapping Text

    Counting Weekends and Wrapping Text

    I said that I probably wouldn’t have time to get involved with the Perl Weekly Challenge every week and that has, unfortunately, proven to be the case. But I had a few free minutes earlier in the week so I decided to look at this week’s challenges. I’m glad I did because they seemed to…

  • Perl Conference in Riga

    Perl Conference in Riga

    It’s only two weeks until I head to Riga for PerlCon 2019. I thought it was worthwhile posting a quick update confirming that I was going and telling you what I would be doing there. Firstly, I’ve previously mentioned that I was planning to run my “Modern Web Development with Dancer” workshop on the day…

  • Perl Weekly Challenge – 2019-03-25

    I’m not sure that I’ll have time to do these every week, but here are my answers to this week’s two Perl Weekly Challenges. Challenge #1 Write a script to replace the character ‘e’ with ‘E’ in the string ‘Perl Weekly Challenge’. Also print the number of times the character ‘e’ found in the string. use strict; use warnings; use feature ‘say’;…

  • Plans for Riga

    Plans for Riga

    The European Perl Conference this year is going to be held in Riga in August. That might seem a long way away, but it’s never too early to start thinking about these things. For example the conference web site went live earlier this week, enabling users to register for the conference and buy their tickets.…

  • A Subtle Bug

    A Subtle Bug

    Earlier this week, I saw this code being recommended on Stack Overflow. The code contains a nasty, but rather subtle bug. The version I saw has been fixed now, but I thought there were some interesting lessons to learn by looking at the problems in some detail. Let’s start by working out what the bug…