Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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
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?
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 avoiding work at the Monastery: (14)
As of 2015-07-30 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls