For those who think that Perl lacks the adequacy to replace english
I will attempt to translate and answer this:

perl -we "code........." = when I executed this from the commandline it didn't work.

note: shift is regularly used in programs, replace shift with "palindrome word" 
(obviously replace "palindrome word" with the word you are testing.)

If no word is applied the program will not work as is expected.

Using -w does NOT mean something is wrong : try this if ( int ("") < 0) {print "foo.\n"}
with -w it whines, this is a valid way of converting strings to integer.
and it converts the value to 0 but still it complains. Perlease....

The script is just showing that in one line you can find a palindrome
That is how cool Perl is. 

The wrapping code lacks validation and prettification, as I expect the 
perl community to understand the spirit in which this is posted.

If I wanted to write bullet-proof code, I would do it in three lines not two!!</emp>


Frankus.

In reply to Missing the point. by frankus
in thread aoxomoxoa by frankus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.