coder45 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: parsing javascript with perl
by GrandFather (Saint) on Jan 06, 2006 at 10:32 UTC

    I don't see a lot of JavaScript there coder45. There's a chunk of HTML, but it's not obvious what you want to parse out. Care to show us the text you want to end up with after the parsing operation?


    DWIM is Perl's answer to Gödel
Re: parsing javascript with perl
by donarb (Beadle) on Jan 07, 2006 at 20:13 UTC
    I'm not sure what your example code has to do with javascript, but if I understand your question, you would like to fill in an HTML form from the web server to allow a user to edit a database record?

    If that's the case, then what you want is the HTML::FillInForm module, it takes HTML text and a hash of values and matches the hash keys with form field names. It knows all about input fields, popups, checkboxes and will encode text correctly for display (in case your text contains things like '&', '<' and '>').