specifically, I noticed my @arr = {map { }, 1 .. $arr_len} seems to work, rather than my first guess, which was my @arr = [map { }, 1 .. $arr_len].
But shouldn't we return a array to assign into @arr? hence use square brackets?
In reply to Re^3: Newbies question: initializing data structure
by roibrodo
in thread Newbies question: initializing data structure
by roibrodo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |