String with all whitespace:
if ($string =~ /^\s+$/)
Or, to get rid of whitespace in the beginning of a string:
$string =~ s/\s+(\w.*)/$1/;
In reply to Re: Searching Strings for Characters
by mfriedman
in thread Searching Strings for Characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |