in reply to Re: Hashes/Scalars and Memory Usage
in thread Hashes/Scalars and Memory Usage
I ended up settling with the above situation. Each field that's on the form (and these are very complex forms at times..) gets it's own little section like that for clarity. By placing it in the code block, the variable goes out of scope as soon as the block's done...(since I no longer need the variable...) Is this the Wrong Thing to Do(TM)?COMPANYNAME: { my $company_name = $cgi->textfield( -name=>'company_name', -default=>$tabdata->{CompanyInfo}->{company_name}, -size=>30 ); $screen->AppendToSection('body',<<"EOF"); <tr> <td class="fieldname">Company Name</td> <td class="fieldvalue">$company_name</td> </tr> EOF }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Hashes/Scalars and Memory Usage
by Fastolfe (Vicar) on Feb 09, 2001 at 02:44 UTC | |
by EvilTypeGuy (Initiate) on Feb 10, 2001 at 02:14 UTC |