in reply to Apache::ASP issue

Apparently in ScriptOnFlush I had my $status = $Response->Status() which set the status to 0, I changed it to my $status = $Response->{Status} and it works

Thanks again everyone who read this

Replies are listed 'Best First'.
Re^2: Apache::ASP issue
by bliako (Abbot) on Jan 31, 2025 at 08:19 UTC

    The difference is that by this: $Response->Status() you call a function, and by this you get the value of the "property" named Status from object or hash named $Response: $Response->{Status} . In the former case, you get a warning if no such sub exists: can't locate object method 'Status' .... It's intuitive to assume there should be setters/getters rather than accessing an object's internal properties like above. I would check my code for more of these. Btw the Apache::ASP and Changelog therein mentions some changes to what Status is set by default etc.

    bw, bliako