Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: printing the subscript separator

by Enlil (Parson)
on Feb 09, 2005 at 19:46 UTC ( #429488=note: print w/replies, xml ) Need Help??

in reply to printing the subscript separator

So what you want is to print out the subscript separator $;, but not print it out if it is completely blank (i.e. just whitespace, empty string), or if it is undefined?

If I understand you right you want:

if ( defined $operator and $operator =~ /\S/ ) { #print operator here #it is defined and contains something #that is not whitespace } else { #do something else as $operator is either #not defined or it does not contain a #non whitespace character }
If I misinterpretted your intention let us know.


Replies are listed 'Best First'.
Re^2: printing the subscript separator
by jacques (Priest) on Feb 09, 2005 at 21:13 UTC
    Thanks, I like the way you put things, but I figured out what was wrong and updated my OP.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://429488]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2016-10-24 16:51 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.