Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Palindrome array

by LanX (Saint)
on Dec 29, 2012 at 06:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1010793]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found