RE: array of references

2004-10-26 Thread Bob Showalter
Scott Pham wrote: I've been thinking about this and not sure how to approach this problem. Say I want to create an array of 4 array references, thats easy since I know that there will be 4 array references, how would I do this dynamically? Say if one I only needed 2 references and another I

RE: array of references

2004-10-25 Thread Ed Christian
Scott Pham wrote: I've been thinking about this and not sure how to approach this problem. Say I want to create an array of 4 array references, thats easy since I know that there will be 4 array references, how would I do this dynamically? Say if one I only needed 2 references and another I

Re: array of references

2004-10-25 Thread Zeus Odin
push @array, [] while @array 10; also works. Ed Christian [EMAIL PROTECTED] wrote... push (@array,[]) for (1..$num_child_arrays); For more info: perldoc -f push -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: array iteration references

2002-12-16 Thread Duarte Cordeiro
I'll answer my own question: Inside optionsNextItem I'm making a copy of @{$ref}, so setting any value in that copy won't change the array (stupid me). -Original Message- From: Duarte Cordeiro Sent: Monday, December 16, 2002 9:53 AM To: '[EMAIL PROTECTED]' Subject: array iteration