Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Finding longest palindrome from a string

by Limbic~Region (Chancellor)
on Aug 17, 2004 at 14:22 UTC ( #383677=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        $string .= $range[ rand @range ] for 1 .. (rand 48) + 2;
        return $string . (rand() < .5 ? $range[ rand @range ] : '') . reve
    +rse $string;
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    onmlkjihgfedcbabcdefghijklkjihgfedcbabcdefghijklmno
    onmlkjihgfedcbabcdefghijklkjihgfedcbabcdefghijklmno
    111111111111111111161111111111111111111
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://383677]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-29 11:08 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 (263 votes), past polls