It's true that square brackets make a reference to a new copy of the array. But the multiplication operator then takes 26 copies of that reference.
I was originally going to post the same solution, but before I did, I checked it in the debugger :)
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: Re: Re: 2D arrays & mo' better blues
by davorg
in thread 2D arrays & mo' better blues
by gregor42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |