in reply to printing the subscript separator
$operator !~ /[^\s+]/
$operator does not match "a character that is not a space nor the plus sign"
I think what you want is:
$operator does not match "a space"
Which would be:
$operator !~ /\s/
Do remember that you're not testing if $operator has only that; you're testing for the existence of one single character in the string (maybe /^\s$/ or /^\s+$/ is what you really want?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing the subscript separator
by jacques (Priest) on Feb 09, 2005 at 19:12 UTC | |
by cog (Parson) on Feb 09, 2005 at 19:16 UTC |