For the life of me I couldn't (and still can't) figure out how it happened, but a special character must have been inserted into my perl file. I just couldn't see how the compiler was failing where it was, because it looked like fine to me. I asked someone else to look at it, and then he said that it should work as well. I don't know how I came to the conclusion that I should just use putty's copy and paste function, to copy the code, and re-paste it into the same document, but for some reason it worked! Ironically enough, btw, I just added to my home node my favourite type of coffee, which a local coffee shop has... Cheers.
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>
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
Want more info? How to link or
or How to display code and escape characters
are good places to start.