Your code, unedited tells you what's wrong:

marto@Shemp:~/code$ ./rubbish.pl Content-type: text/plain Useless use of a constant ("currency") in void context at ./rubbish.pl + line 25. Useless use of a constant ("USD") in void context at ./rubbish.pl line + 25. Useless use of a constant ("amount") in void context at ./rubbish.pl l +ine 25. Useless use of a constant ("500") in void context at ./rubbish.pl line + 25. Useless use of a constant ("description") in void context at ./rubbish +.pl line 25. Useless use of a constant ("hey") in void context at ./rubbish.pl line + 25. Useless use of a constant ("internal") in void context at ./rubbish.pl + line 25. Argument "Key" isn't numeric in subtraction (-) at ./rubbish.pl line 1 +3. Argument "Apiauth" isn't numeric in subtraction (-) at ./rubbish.pl li +ne 13. Argument "Nonce" isn't numeric in subtraction (-) at ./rubbish.pl line + 13. Argument "Apiauth" isn't numeric in subtraction (-) at ./rubbish.pl li +ne 13. Argument "Signature" isn't numeric in subtraction (-) at ./rubbish.pl +line 13. Argument "Apiauth" isn't numeric in subtraction (-) at ./rubbish.pl li +ne 13. failure: 400

We've been over the whole CGI development topic before, so I won't waste my time. Run things command line before trying them in the browser, if you are running things as CGI scripts learn how to debug them. Re read the responses to your previous posts, because this has all been explained to you before. Your inconsistent, illogical approach to problems, failure to take advice and not learning from your past experiences/mistakes are the fundamental issues.


In reply to Re^3: failure: 400 by marto
in thread failure: 400 by bigup401

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.