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.