Hi All - some interesting help  - thanks drieux, chas, tim  - all good
pointers to resolve.

I still cannot get the array naming to print - let me simplify

$h=0;
$TRY$h=3;
print "$TRY$h";

does not work - I have tried ${TRY\$h}  also

any ideas ???  what am I missing ??

Thanks













[EMAIL PROTECTED] on 04/29/2002 10:19:24 PM

To:   [EMAIL PROTECTED]
cc:

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]

Reply via email to