Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Loading multiple identical variables in array with multiplication variable

by roboticus (Chancellor)
on Sep 24, 2014 at 22:37 UTC ( #1101882=note: print w/replies, xml ) Need Help??


in reply to Loading multiple identical variables in array with multiplication variable

Jeri:

A method that's pretty close to what you originally posted:

my @arr = map {split//} "A"x20, "T"x20, "C"x30, "G"x30;

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Loading multiple identical variables in array with multiplication variable
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2019-05-24 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (147 votes). Check out past polls.

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