So mainarr will be having three arrays. How can I print only the contents of @arr2 from mainarr using foreach?@mainarr; @arr1=qw(a b c d e); @arr2=qw(f g h i j); @arr3=qw(k l m n o); push(@mainarr,@arr1); push(@mainarr,@arr2); push(@mainarr,@arr3);
In reply to Array of array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |