in reply to Re^2: Best way to initialize hash x repetition array?
in thread Best way to initialize hash x repetition array?
The last thing that I'd like to find now is something that automatically generates 0, 0 or 0, 0, 0 ....
[0]{} Perl> print [ (0) x $_ ] for 1 .. 4;; ARRAY(0x36fed28) ARRAY(0x36fecf8) ARRAY(0x36fece0) ARRAY(0x36fecc8) [0]{} Perl> print @{ [ (0) x $_ ] } for 1 .. 4;; 0 0 0 0 0 0 0 0 0 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Best way to initialize hash x repetition array?
by Veltro (Hermit) on Jun 30, 2018 at 07:28 UTC | |
by ikegami (Patriarch) on Jun 30, 2018 at 18:07 UTC |