http://www.perlmonks.org?node_id=1014941


in reply to Re^2: Code won't proceed after input.
in thread Code won't proceed after input.

Or better yet IMHO:

>perl -wMstrict -le "my @AAMatrix = qw( A C D E F G H I K L M N P Q R S T V W Y ); ;; my @AAOcc = (0) x @AAMatrix; print qq{@AAOcc}; " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Replies are listed 'Best First'.
^Recommended practice
by space_monk (Chaplain) on Jan 24, 2013 at 11:49 UTC
    I ran out of votes before getting to your comment, but I definitely approve as it solves a common mistake where manual sizing of multiple arrays is involved
    A Monk aims to give answers to those who have none, and to learn from those who know more.