This code
$cn = $ct[$k];
print "<a name='$ct[$k]'>$continentnam e[$cn]</a>\n";
works, and prints something like <a name='af'>Afric a</a>
But if I try to simplify it, to
print "<a name='$ct[$k]'>$continentnam e[$ct[$k]]</a>\n";
I get a syntax error
unexpected '[', expecting ']'
So what is the correct way to write something like $a[$b[$c]] ? I have
tried adding extra {} and '' here and there, so far without success.
Nick
--
Nick Wedd nick@maproom.co .uk
$cn = $ct[$k];
print "<a name='$ct[$k]'>$continentnam e[$cn]</a>\n";
works, and prints something like <a name='af'>Afric a</a>
But if I try to simplify it, to
print "<a name='$ct[$k]'>$continentnam e[$ct[$k]]</a>\n";
I get a syntax error
unexpected '[', expecting ']'
So what is the correct way to write something like $a[$b[$c]] ? I have
tried adding extra {} and '' here and there, so far without success.
Nick
--
Nick Wedd nick@maproom.co .uk
Comment