Perl: the Markov chain saw | |
PerlMonks |
Re: Length of array in hash of arraysby Grimy (Pilgrim) |
on May 12, 2013 at 08:43 UTC ( [id://1033178]=note: print w/replies, xml ) | Need Help?? |
You're aware that none of these solutions actually print the length of the array, right? Well, they do so in this example, but by pure serendipity.
The actual “standard” way to get the length of the array would be $#{$g{k}} or 0+@{$g{k}}
In Section
Obfuscated Code
|
|