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
Download (untitled) / with headers
text/plain 121b
my $params = $cgi->Vars; my $value = delete $params->{'value'}; $value is undef even if $params->{'value'} is not undef.
Patch welcome.
Patch welcome.
Download (untitled) / with headers
text/plain 240b
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.
Download (untitled) / with headers
text/plain 622b
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(-)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.