|No such thing as a small change|
Loading multiple identical variables in array with multiplication variableby Jeri (Scribe)
|on Sep 24, 2014 at 16:35 UTC||Need Help??|
Jeri has asked for the wisdom of the Perl Monks concerning the following question:
I would like to load an array with...
I've writtenmy @arr = ("A" x 20, "T" x 20, "C" x 30, "G" x 30);
but it puts
instead of having 0-99 indices.
Does anyone know how to load this with minimal syntax? I've done this before, but I can't remember how to do it.