in reply to Re: Uninitialized $1 in s///
in thread Uninitialized $1 in s///

Aha, so it's the interpreter's fault. /e is not as cute :)

I can probably do something like

$command = join(":", $command =~ /^(?:a(\w))?(\w)$/);

but this requires an extra function call.