Perl Hacks: Just another Perl hacker’s blog

  • Net::Twitter and Iranian Elections

    Over the last few days I’ve seen a large number of tweets saying that the Perl module Net::Twitter is being used to post pro-government propaganda from Iran. If it’s true, this is almost certainly a reaction to the large number of people who are using Twitter to get around the Iranian government’s censorship. It’s disappointing,…

  • New CPAN Releases

    I haven’t been particularly prolific in releasing new versions of my CPAN modules recently. But over the last couple of days I finally got my act together and release new versions of three modules. Array::Compare Number::Fraction Perlanet In all three cases, I’ve fixed pretty obscure bugs, added minor functionality or fixed the documenation. There’s nothing…

  • What is Wrong With this Picture?

    I’ve just found a number of subroutines defined this way in the code that I’m working on. sub do_something () { my $parameter = shift; … } I discovered the problem because I started getting errors about “too many parameters”. I knew what the problem was (the empty prototype) but it took a couple of…

  • CPAN Web Feeds

    I’m still thinking about adding stuff to this blog. I’d like to add some web feeds to the sidebar. In particular, I’d like a feed of my CPAN uploads. I don’t expect it to be a particularly busy feed (although having such blatant evidence of my laziness might galvanise me into being a bit more…

  • Testing Syntax Highlighting

    Right. I think I might have got this cracked now. Here’s some Perl code. #!/usr/bin/perl use strict; use warnings; print “Hello World\n”; That’s pretty cool, isn’t it. I wonder what it’ll look like in the web feed. I’ll try to feed my fixes back to the author of the plugin.