go ahead... be a heretic | |
PerlMonks |
Re: Variable Substitution within NameSpaceby dsb (Chaplain) |
on Aug 03, 2004 at 18:04 UTC ( [id://379769]=note: print w/replies, xml ) | Need Help?? |
If I'm understanding you correctly, you want to pass form values. Fine. CGI.pm has methods suitable for doing that in a much neater way than what you are attempting. The param() function is the one you want.
So you've got that form element. Once you've submitted, call the param() function and bind that element to a variable in the script you call in the action attribute of your form definition. param() examines the query string submitted to by your form and pulls the values out of that. In this case $cust would hold the value 'whatever'.
dsb This @ISA my cool %SIG
In Section
Seekers of Perl Wisdom
|
|