[EMAIL PROTECTED] (Guruguhan N) writes:
> Hi All,
> I have recently started using Perl for my project. I have a problem in
> getting elements of the following array.
>
> @array1 = ( [ x1, x2, x3],
> [ x4, x5, x6],
> [ x7, x8, x9]);
>
> I would like to get the el
]
Subject: Re: array inside an array
"N, Guruguhan (GEAE, Foreign National, EACOE)" wrote:
> Hi All,
> I have recently started using Perl for my project. I have a
problem in getting elements of the following array.
>
> @array1 = ( [ x1, x2, x3],
>
Hello Guru,
Your variable in english would be termed as:
* An Array whose elements are "Reference to Arrays".
As such, you can get to the elements via:
$array[0]->[0] will be x1
$array[0]->[1] will be x2
...
$array[2]->[1] will be x8
Have a look at
% perldoc perlref
for more info...
On Tu
"N, Guruguhan (GEAE, Foreign National, EACOE)" wrote:
> Hi All,
> I have recently started using Perl for my project. I have a problem in
> getting elements of the following array.
>
> @array1 = ( [ x1, x2, x3],
> [ x4, x5, x6],
> [ x7, x8, x9]);
@array1 is an
Hi All,
I have recently started using Perl for my project. I have a problem in
getting elements of the following array.
@array1 = ( [ x1, x2, x3],
[ x4, x5, x6],
[ x7, x8, x9]);
I would like to get the elements x1 to x9 and replace that with certain numbers.