Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array of array
by Corion (Patriarch) on Jun 04, 2009 at 07:40 UTC | |
|
Re: Array of array
by Utilitarian (Vicar) on Jun 04, 2009 at 08:06 UTC | |
|
Re: Array of array
by nagalenoj (Friar) on Jun 04, 2009 at 07:44 UTC | |
by wfsp (Abbot) on Jun 04, 2009 at 13:00 UTC | |
|
Re: Array of array
by vinoth.ree (Monsignor) on Jun 04, 2009 at 07:52 UTC | |
by ig (Vicar) on Jun 04, 2009 at 08:40 UTC | |
by vinoth.ree (Monsignor) on Jun 04, 2009 at 09:16 UTC | |
by ig (Vicar) on Jun 04, 2009 at 10:08 UTC | |
|
Re: Array of array
by Marshall (Canon) on Jun 04, 2009 at 09:30 UTC | |
|
Re: Array of array
by bichonfrise74 (Vicar) on Jun 04, 2009 at 16:19 UTC |