Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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.

-enlil


Comment on Re: printing the subscript separator
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2014-09-22 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls