in reply to Searching Strings for Characters
String with all whitespace:
if ($string =~ /^\s+$/) [download]
Or, to get rid of whitespace in the beginning of a string:
$string =~ s/\s+(\w.*)/$1/; [download]