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
In reply to Re^3: Best way to initialize hash x repetition array?
by BrowserUk
in thread Best way to initialize hash x repetition array?
by Veltro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |