R
Robin Corcoran
I'm trying to use the value of one variable in the name of another variable.
I have a while loop which matches every table in my document and I want to
record something for each table. I'm using one variable to count the tables
my $tableCount++;
I want to use the value of that variable in creating another variable.
my $table_$tableCount_cols="5"; #I want to create a var called
$table_2_cols
I've messed around using {} to isolate each variable, but I don't think I
have it quite right. I can't find anything in the FAQ's that cover this, and
any help would be appreciated.
Thanks,
Robinshane
I have a while loop which matches every table in my document and I want to
record something for each table. I'm using one variable to count the tables
my $tableCount++;
I want to use the value of that variable in creating another variable.
my $table_$tableCount_cols="5"; #I want to create a var called
$table_2_cols
I've messed around using {} to isolate each variable, but I don't think I
have it quite right. I can't find anything in the FAQ's that cover this, and
any help would be appreciated.
Thanks,
Robinshane