I am trying to print the value of the subscript separator ($;) in an html page, but I am trying to avoid printing values that show up as spaces and variables that are not defined with:
if ((not defined ($operator)) || ($operator !~ /[^\s+]/))
But when I pass this the subscript separator, the if statement is evaluated to false and a blank or empty space appears in the html page. What's going on?
Problem solved: The issue was with the subscript separator itself. The default value is "\034". This value cannot be rendered in my html, so it appears as space. Thank you to all those who replied.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|