-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hash ordering bug tickled by perl 5.18.0 #1
Conversation
Your patch doesn't solve the problem. A hashref should be passed to CGI.pm's cookie method: my $newcookie = $self->query->cookie(%options); To be surprised, the following code: $query->cookie( 'foo', 'bar', 'baz', 'qux' ); is equivalent to: $query->cookie( -name => 'foo', -value => 'baz', -path => 'baz', -domain => 'qux' ); An initial dash is important. If you pass a hashref to CGI#cookie, the method will work as you expect. |
Sorry, i misunderstood. Your patch solves the problem anyway because keys are sorted. |
Hashref would be fine with me if it will get merged, but I've pretty much given up hope at this point and am looking forward to ditching CGI::Application |
I just found your patch here: https://rt.cpan.org/Public/Bug/Display.html?id=81611 |
oh yeah, yours is certainly better, I will admit that :-D |
I noticed you got maintainership on CGI-Application-Plugin-DBH to fix issues there. Any chance of doing the same on this module? |
I'd love to, but cees hasn't responded to my emails. Maybe I'll petition for ownership :/ |
Ok, I got comaint. I will release this shortly. I switched to a hashref as @anazawa recommended. I'll also grab any low hanging RT's I see. |
Arg, ironically neither my patch nor @anazawa 's works on anything OLDER than 5.18. I'm trying to find a real solution other than checking the perl version. Ideas welcome. |
ok fixed for real now. Was a bug in Devel::Cover |
Thanks for fixing bugs. |
No description provided.