Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Palindrome array

by LanX (Canon)
on Dec 29, 2012 at 06:13 UTC ( #1010793=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<107> @a = 1..3
     => (1, 2, 3)
     
      DB<108> @a eq "3"
     => 1
    
  2. or download this
      DB<123> (reverse @a)
     => (3, 2, 1)
    ...
     
      DB<125> "321" eq (reverse @a)
     => 1
    
  3. or download this
      DB<129> @a=(3,1,3)
     => (3, 1, 3)
    ...
     
      DB<133> @a ~~ [reverse @a]
     => ""
    
  4. or download this
      DB<143> @a=(3,1,3)
     => (3, 1, 3)
    ...
     
      DB<146> "@a" eq "@ar"
     => 1
    
  5. or download this
      DB<151> "@a"
     => "3 1 3"
    ...
     
      DB<153> "@a" eq "@b"
     => 1
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-12-22 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (113 votes), past polls