|
5/25 |
2002/10/16 [Computer/SW/Languages/Perl] UID:26197 Activity:nil |
10/15 In perl5 how to do test if a variable is either blank ("") or just consists of whitespace? if $foo =~ // || / +/ ? \_ Whitespace usually consists of things like tabs as well as spaces, \s includes these. You could do something like $foo =~ /^\s*$/ |