Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

AndyArmstrong (7200)

  (email not shown publicly)
Thursday March 15, 2007
03:35 PM

Misleading idioms

I've just written some code that looked like this (with error checking):

        open my $fh, '>', 'somefile.txt';
        my $self = {
                fh => $fh

        # And then later
        close delete $self->{fh};

I wonder what that looks like to someone who doesn't know Perl. D'you
think they might suspect that 'close delete' is an idiom for closing and
deleting a file at the same time?

Mostly I'm blissfully aware of how Perl must look to people who aren't
familiar with it but that particular line jumped out.

Can anyone else think of actively misleading Perl idioms (as opposed to
just bloody hard to understand ones)?

Monday March 12, 2007
09:23 AM

TAP::Parser 0.51 released

TAPx::Parser is now known as TAP::Parser. You can find the latest CPAN release here:

and the latest work-in-progress here:

Changes in this release:

0.51 12 March 2007

  • 'execrc' file now allows 'regex' matches for tests.
  • rename 'TAPx' --> 'TAP'
  • Reimplemented the parse logic of TAP::Parser as a state machine.
  • Removed various ad-hoc state variables from TAP::Parser and moved their logic into the state machine.
  • Removed now-unused is_first / is_last methods from Iterator and simplified remaining logic to suit.
  • Removed now-redundant t/140-varsource.t.
  • Implemented TAP version syntax.
  • Tidied TAP::Harness::Compatible documentation
  • Removed redundant modules below TAP::Harness::Compatible
  • Removed unused compatibility tests
Thursday December 21, 2006
09:25 AM

Perl flavoured Google search

I've been playing with a Google CSE for the Perl world. Feel free to link to it, use it and suggest changes:

Search Perl World

If people like it I'll set up an adwords account for it and send any money it makes to the Perl Foundation.