Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Palindrome array

by LanX (Chancellor)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2017-06-26 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (572 votes). Check out past polls.