Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Where am i going wrong?#! use strict; use warnings; my @arr = (1,2,3,4); my @arr2 = ('a',4,2,'s'); my $rarr = \@arr; my $rarr2 = \@arr2; my @arra = ($rarr,$rarr2); # I am trying to print the array @arr & @arr2. # i also want to access individual elements in those arrays using refe +rences print $arra{$$rarr[0]};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array of arrays- references
by wfsp (Abbot) on May 27, 2010 at 07:04 UTC | |
|
Re: Array of arrays- references
by Khen1950fx (Canon) on May 27, 2010 at 07:58 UTC | |
|
Re: Array of arrays- references
by Anonymous Monk on May 27, 2010 at 09:34 UTC | |
by planetscape (Chancellor) on May 27, 2010 at 22:08 UTC |