Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Count elements in multidimensional arrays

by Paladin (Vicar)
on May 25, 2019 at 00:00 UTC ( [id://11100501] : note . print w/replies, xml ) Need Help??


in reply to Count elements in multidimensional arrays

In the second one you are assigning to $ar1 which isn't @ar1. If you used strict and warnings you would have been warned about this.