http://qs321.pair.com?node_id=379760

yellow_tree_frog has asked for the wisdom of the Perl Monks concerning the following question:

I am posting info from page A to page B like so:

Page A:
#(within form)
print "<input type=text name =custtype value=kljlkjklj>";<BR><BR>
Page B:
$input = new CGI;<BR> $input->import_names('R');<BR> print "$R::custtype" ; ##prints out "kljlkjklj" successfully.

However I need to make this work using variable substitution, something like this:
$xx="custtype";
print "$R::$xx" ; ## but this prints only "custtype"???
Can anybody tell me what syntax I should use for this to work? Thanks.