in reply to single regexp to match a defined STDIN

I like split.
my $text = 'command: cmd arg1 arg2;'; # if Schwern ever reads this, he'll be impressed chop $text; my ($command, $cmd, @args) = split(' ', $text);
Is that remotely close to what you're attempting?