in reply to Parsing small string

You could also try using a regex for this:
my ($cmd,$param) = ($stripped =~ /\.(\S+)\s*(\S*)/);
-- Joost downtime n. The period during which a system is error-free and immune from user input.