Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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.


Comment on Re: printing the subscript separator
Select or Download Code
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 wandering the Monastery: (17)
As of 2015-11-30 19:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (778 votes), past polls