One slight caveat with the way you set up the array. You'll end up with 26 references to the same array. Depending on what you're doing with the data, this may or may not be a problem. All of the other solutions I've seen create a copy of the array each time.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: 2D arrays & mo' better blues
by davorg
in thread 2D arrays & mo' better blues
by gregor42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |