in reply to Re^2: printing the subscript separator
in thread printing the subscript separator

Perhaps you could be more descriptive :)

Update: That's zero or more space characters from start to end... in other words... either nothing (no chars) or all whitespace.

my $var = '';
That will not be caught by /^\s+$/

Replies are listed 'Best First'.
Re^4: printing the subscript separator
by jacques (Priest) on Feb 09, 2005 at 18:29 UTC
    But it would be caught by the if statement since it checks if $operator is not defined.

    Update: I was thinking of 'false'.

      An empty string is defined; only undef is undefined.

      freebie:~ 663> perl -le 'print "defined" if defined ""' defined
        Correct!! I was thinking of 'false'. Whoops.
      It is defined.
      $operator = '';

      Contains no whitespace, yet it's defined... not sure where that falls in your original criteria (my guess is you don't want it)