Title: CGI.pm module

Given the following simple "read file" code...

# Read file
$s=$/;
undef $/;
open(FILE, "$nt_dir\\$formfile");
$file=new CGI(FILE);
close(FILE);
$/=$s;

Now, how do I just peruse through all of the HTML tags (like <input type="text" name="username" value="jsmith">)? I want to change value="", selected, checked, etc., to the values passed from a previous submit.

I've looked at the docs for CGI.pm, CGI::Pretty, HTML::Form, HTML::Parser, HTML::FillInForm, HTML::TokeParser, with nothing to show for it. I'm kinda frustrated.  So far, the only suggestions have been "look at this or that module."

I can do it using clever regexp substitutions, but I'd prefer a more elegant solution.

TIA.
-WM   <><

Reply via email to