in reply to is it possible to write two statements one for creating a widget and setting value to the widget?
That's not how CGI works. CGI works by printingreturning text. Once you've called textfield(-value => $value) it printsreturns <textarea>$value</textarea>. You cannot undo that, so what you want does not work.
Update: moritz pointed out that CGI does not implicitly print the HTML. That just shows how long ago I used it for HTML generation ;)
|
|---|