Re: array inside an array

2003-10-14 Thread Jorge Barrios
[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

RE: array inside an array

2003-10-13 Thread N, Guruguhan (GEAE, Foreign National, EACOE)
] 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], >

Re: array inside an array

2003-10-13 Thread simran
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

Re: array inside an array

2003-10-13 Thread Sudarshan Raghavan
"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

array inside an array

2003-10-13 Thread N, Guruguhan (GEAE, Foreign National, EACOE)
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.