Errors? Warnings!!!!
<shrug type=gallic>If you idea of obfuscation and mine differ, I'm sorry.</shrug>
I spent 4 years in a comp sci cohort with pedants that would
feel that they had made a valid point if they asked you to run a
piece of code and input the wrong variable type (in C) and it crash.
The fact that by removing the error checking meant the whole code
fitted one over-head, escaped them. Perhaps I have the same weary mindset
to these people and I applied it to you. My apologies if I have mistakenly grouped you with the nerds.
In this case the code doesn't work with strict or warn, and frankly a null word is
the same reversed, depends on your identification of a palindrome.
I like your changes. It is not too removed from what I did, except
that you've used interpolation. I was hoping for a response in regex.
I will look at your code and see if I can reduce it more, just for fun.
Thankyou.
:-)
Frankus.
-
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.
|