|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: Number of elements in arrayby tobyink (Prior) |
| on Sep 24, 2012 at 14:03 UTC ( #995391=note: print w/ replies, xml ) | Need Help?? |
|
This counts the number of rows. The OP was counting the number of columns. Of course, it's possible that the OP did actually want the number of rows...
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||