in reply to CGI hanging during HTML generation (was : anyone have an answer?)

Okay, I've narrowed down the problem to the line
$_ =~ s/\$(\w+)/$formdata{$1}/eg;
I'm not exactly sure what the problem with this line is, seeing how it works at a previous occurence of the exact same line. When I comment out this line, however, the HTML is displayed in full, but none of the form field values are replaced. Does anyone see the mistake? ?????

Replies are listed 'Best First'.
Re: Re: anyone have an answer?
by chromatic (Archbishop) on Jun 06, 2002 at 02:17 UTC
    A guess: some value in %formdata has the same name as a key and starts with '$'.