March 2010 Archives

perl: bug-compatible with DOS 1.0!

On DOS, this:

A:\> WIBBLE/BOING

is equivalent to:

A:\> WIBBLE /BOING

that is to say, even with no space in between them, it finds and executes the WIBBLE program, passing it the /BOING argument.

It's only reasonable that perl's system(SCALAR) should do the same. But it's not reasonable that system(LIST) should. And yet it does. This:

system(qw(wibble/boing foo bar))

which …

Sub::WrapPackages 2.0 released

Sub::WrapPackages 2.0 is a fairly substantial rewrite from the previous version, and may introduce some minor incompatibilities. But what you get in exchange makes it worth it.

  • The code is now marginally less batshit-insane;
  • It uses Devel::Caller::IgnoreNamespaces, which I factored out of Hook::LexWrap, so caller() works;
  • It is better tested;
  • It protects its magic @INC subroutine from 'use lib'

About David Cantrell

user-pic I'm in yur test resultz analyzn yr failz