Suppose I have this piece of code.
It has an array 'arr' storing the names of other arrays like 'et', 'rt' etc...
#!/usr/bin/perl
$\="\n";
@arr = ("$et", "\$rt", "\$ee", "\$re", "\$ec", "\$epc", "\$rc", "\$rpc", "\$euc", "\$ruc", "\$ekc", "\$rkc");
@et = (100, 1000, 1100, 1200, 200, 300, 400, 500, 600, 700, 800, 900);
.
.
.
And other arrays rt, ee similarly defined..
How do I access say $et[2]? I've tried $arr[0][2], $($arr[0])[2] and many other variations but nothing seems to work. Any solution?
ARRAYS OF ARRAYS,HASHES OF ARRAYS,ARRAYS OF HASHES,HASHES OF HASHES=> perldoc.perl.org/perldsc.html