Excellent, thanks Bob and John!
- B > Bryan R Harris wrote: >> >> Is it possible to easily initialize an array so that: >> >> $index[0] is a pointer to a new anonymous (?) array (0,0) >> $index[1] is a pointer to a new anonymous (?) array (0,0) >> ... >> $index[$#params] is a pointer to a new anonymous (?) array (0,0) >> >> I tried: >> >> @index = ([0,0]) x @params; >> >> ... but it seems to create a bunch of pointers to the same array, e.g. >> $index[1][0] points to the same thing as $index[0][0]. I need them to be >> different. > > @index = map [0,0], 0 .. $#params; > > > > John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>