in reply to stripping whitespace gives an 'unitialized value' error

then has the leading white space removed with the regex substitution s/^\s+//

Laziness is a virtue: Text::Trim.

-- 
Ronald Fischer <ynnor@mm.st>