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
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
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/
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