in reply to A regexp from paypal

It looks like something lifted directly out of cgi-lib.pl, which is, well, ancient. It really looks like some beginner programmer wrote his own CGI parameter processing code, borrowing here and there... (And, haven't we all...) There really is no need to use pack "C", ... any more, as Perl 5, which has been around for more than 12 years, has chr. (Perl 4 did not.)

So: you might use this code to learn some Perl, but please don't copy it, as it can really not be considered "best practices" any more.

Replies are listed 'Best First'.
Re^2: A regexp from paypal
by davidov0009 (Scribe) on Nov 26, 2007 at 23:06 UTC
    Yep I know that, just need to know what it did so that when I was rewriting this program to use CGI that I didn't leave something out. I've gotten past that now and am having trouble implementing CGI.pm to send back the post request to the server. When I post the query object back PayPal doesn't like the way it's formatted. I am trying to resist using the read() function to get the post string but the CGI module isn't making this too easy. Does anyone know how I can get at the post data and add a var (I've done this using param() ) and then send it back using LWP without screwing up the format?
    use strict; use CGI;