in reply to Variable name containing a variable
Yes, but you really want to use a hash.
my $something = 'a_key'; $message{ $something } = ' ... '; [download]