Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 51020
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: mkanat [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Vars TIEHASH interface does not return the value for DELETE
my $params = $cgi->Vars; my $value = delete $params->{'value'}; $value is undef even if $params->{'value'} is not undef.
Patch welcome.
Patch welcome.
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/61 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
commit 2990ef13cfad76dcfc12087c9d7028f51d38a652 Author: Lee Johnson <lee@givengain.ch> Date: Sun Jul 27 16:09:04 2014 +0200 resolve #61 [rt.cpan.org #51020] - tied delete returns var deleted from the hash to make it behave the same as the perl's built in delete function. add test case to t/request.t for this. note that this was patch was source from the bugzilla subclass of CGI (Bugzilla::CGI), which may have more useful fixes as well. see issue #141 for information on this Changes | 2 ++ lib/CGI.pm | 5 ++++- t/request.t | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-)