Help for this page

Select Code to Download


  1. or download this
        print "Spaces only\n"         if $var =~ /^ +\z/;
        print "Only whitespace\n"     if $var =~ /^\s+$/;
        print "Whitespace or empty\n" if $var =~ /^\s*$/;