http://www.perlmonks.org?node_id=1015534


in reply to Can I concatenate variables?

> Is it impossible to use variables within variables?

Yes, but for good reasons "symbolic references" are deactivated under strict!

Better use hashes:

my %line; for my $alpha ( "a" .. "b" ) { $line{$alpha} = "somenum"; }

If you still insist to use it, search for "variables as variable names perl".

EDIT: second google hit Why it's stupid to `use a variable as a variable name' from 1998!!! =)

Cheers Rolf