in reply to Re^7: Save form data with decoded URL chars
in thread Save form data with decoded URL chars

For example, why do you have 2 equal signs on your output ? Isn't it just easier to write $qry->save ? And then that part that I would have to create a new cgi...
  • Comment on Re^8: Save form data with decoded URL chars

Replies are listed 'Best First'.
Re^9: Save form data with decoded URL chars
by Anonymous Monk on Aug 09, 2012 at 08:36 UTC

    For example, why do you have 2 equal signs on your output ?

    Its your output too.

    Look at the code, its because the data contains equal signs and newlines, and if you undo the serialization that CGI->save does, then you've corrupted your data (ro is no longer qq{=sh\nam=bo\n}, its only =sh, but now there is an extra parameter am with the value bo -- both newlines go missing )

    And then that part that I would have to create a new cgi...

    WHAT?!

      This : "...save is a CGI.pm serialization method, if you want to read the file again, use CGI.pm's new, ..."

      What do you mean by undo serialization ? Go back on browser or ?

        Maybe you want to follow the Anonymous Monk's link to "serialization"? To undo serialization would mean to reverse the process of serializing data.

        Maybe you can explain to us what overarching problem you're trying to solve? Saving requests to a file is a measure I've only used for debugging CGI scripts.