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)
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.
Page A:
#(within form)
Page B:print "<input type=text name =custtype value=kljlkjklj>";<BR><BR>
$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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Variable Substitution within NameSpace
by matija (Priest) on Aug 03, 2004 at 17:59 UTC | |
Re: Variable Substitution within NameSpace
by dsb (Chaplain) on Aug 03, 2004 at 18:04 UTC | |
Re: Variable Substitution within NameSpace
by davido (Cardinal) on Aug 04, 2004 at 04:28 UTC | |
Re: Variable Substitution within NameSpace
by broquaint (Abbot) on Aug 04, 2004 at 03:07 UTC | |
Re: Variable Substitution within NameSpace
by sunadmn (Curate) on Aug 03, 2004 at 18:00 UTC | |
Re: Variable Substitution within NameSpace
by ccn (Vicar) on Aug 04, 2004 at 08:06 UTC | |
by yellow_tree_frog (Initiate) on Aug 04, 2004 at 17:43 UTC |
Back to
Seekers of Perl Wisdom