@_=(['a'..'z'])x26;Careful! That creates @_ as a list of 26 references to the same array. If you change an element in any one of the rows, you'll have changed that element in every row.
push @outtie, [ @alpha ] for @alpha;This snippet from your expanded solution is the preferred way to avoid this problem.
In reply to Re: Re: 2D arrays & mo' better blues
by chipmunk
in thread 2D arrays & mo' better blues
by gregor42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |