in reply to Re^2: Newbies question: initializing data structure
in thread Newbies question: initializing data structure
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Newbies question: initializing data structure
by almut (Canon) on Jun 02, 2010 at 11:18 UTC |