in reply to Re^4: STDIN typeglob
in thread STDIN typeglob

Is that a better constructor?

Looks like a much better interface to me ... erm, after you fix the syntax error, by changing:

if (!exists{'payload'}) {
to:
if (!exists $vars{'payload'}) {

;-) ... with the caveat that I have zero experience in the CGI domain.

You should also add some new tests with dodgy payloads to verify they're being rejected with a useful error message.

Replies are listed 'Best First'.
Re^6: STDIN typeglob
by Bod (Parson) on Jun 18, 2023 at 17:13 UTC
    Looks like a much better interface to me...

    Well, it's now on its journey from PAUSE to CPAN...this and a few other enhancements have been included in Business::Stripe::Webhook v1.10