Jeri has asked for the wisdom of the Perl Monks concerning the following question:


I would like to load an array with...
20- characters 'A'
20- characters 'T'
30- characters 'G'
30- characters 'C'

I've written

my @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.