Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Loading multiple identical variables in array with multiplication variable

by LanX (Archbishop)
on Sep 24, 2014 at 16:45 UTC ( #1101830=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<126> @arr = (("A") x 2, ("T") x 2, ("C") x 3, ("G") x 3);
     => ("A", "A", "T", "T", "C", "C", "C", "G", "G", "G")
    
  2. or download this
      DB<129> $arr = ("G") x 3;
     => "GGG"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2019-05-23 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!