Actually it should have been unless ($foo =~ /\S/) to maintain the same logic as the other examples.
I think you may be confusing \s (whitespace) with \S (non-whitespace).
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: Re: What is the best way to determine if a string is blank?
by davorg
in thread What is the best way to determine if a string is blank?
by fongsaiyuk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |