Maybe you wanted $var =~ /^\s+$/. Which means ... make sure the $var contains only non-whitespace-characters and is not empty.
I think that you meant $var =~ /^\S+$/ for non-whitespace-characters?
In reply to Re^4: Print function
by jwkrahn
in thread Print function
by de2425
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |