Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Ok, so today is an EXCEPTIONALLY boring day, here's something I whipped together this afternoon:
#!/usr/bin/perl $palindrome="Jarred arts sell less, Trader Raj!"; @daTa=split //,$p +alindrome; $Palindrome="A Danish custard--drat such sin, Ada"; @Data=split //,$P +alindrome; $palIndrome="O, Lisa sees a silo!"; @DAta=split //,$p +alIndrome; $palindrOme="Pets never even step"; @daTa=split //,$p +alindrOme; $palindroMe="Kayak salad - Alaska yak"; @DaTa=split //,$p +alindroMe; @ATAD = <DATA>; @A = @DAtA; @B = @dATA; @C = @daTA; @D = @daTa; @ +d = @data; $DATA=join'',@ATAD; for( reverse split //, $DATA ){ $ATAD .= $_ }; $_= +$ATAD;eval #print "\u$D[0]\L$A[10]$a[3]$a[2] \l$A[0]$A[4]\l$T[0]$a[2]$A[7]$a[1]$D +[2] " # . "\u$a[0]\L$a[1]$D[2]$T[-3] $A[7]$D[1]$A[9]\l$d[0]$a[1]\l$D[-4]," +; __DATA__ + __ATAD__ # ;",]4-[D$l\]1[a$]0[d$l\]9[A$]1[D$]7[A$ ]3-[T$]2[D$]1[a$L\]0 +[a$u\" . # " ]2[D$]1[a$]7[A$]2[a$]0[T$l\]4[A$]0[A$l\ ]2[a$]3[a$]01[A$L\]0[D +$u\" tnirp ;} _$ =. DATA$ {) ATAD$ ,// tilps esrever (rof ;DATA@ ,'' nio +j = ATAD$# ;atad@ = d@ ;aTad@ = a@ ;ATad@ = T@ ;ATAd@ = A@ ;AtAD@ = D@ ;>ATA +D< = DATA@ ;eMordnilap$,// tilps=atad@ ;"kay aksalA - dalas kayaK"=e +Mordnilap$ ;emOrdnilap$,// tilps=aTad@ ;"pets neve reven steP"=e +mOrdnilap$ ;emordnIlap$,// tilps=ATad@ ;"!olis a sees asiL ,O"=e +mordnIlap$ ;emordnilaP$,// tilps=ATAd@ ;"adA ,nis hcus tard--dratsuc hsinaD A"=e +mordnilaP$ ;emordnilap$,// tilps=AtAD@ ;"!jaR redarT ,ssel lles stra derraJ"=e +mordnilap$ lrep/ +nib/rsu/!#
Enjoy.

In reply to fun with palindromes by chargrill

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



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2024-04-25 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found