I think you may be barking up a branch of the right tree... It looks like what you REALLY want is an array of arrays. Check out 'perldoc perllol' and/or look up perl array of arrays in your favorite search engine, and that should get you started.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: array numerical name... Hi all - should be simple - but I cannot figure it out basically i want to name an array with a subscript ie world0[0] and world1[0] the 0/1 being a variable, i have tried to produce a simple example.... For any help - thanks.. ---------------------------------------------------------- @fred = "one,two,three,four"; $a=0; @array$a=split(/,/, @fred) for ($b=0;$b<4;$b++) { print @array$a[$b]; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]