Berkeley CSUA MOTD:Entry 26197
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
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*$/