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: 67666
Status: rejected
Priority: 0/
Queue: CGI

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

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



Subject: Feature request: param to be lvalue sub
CGI.pm lets you set a parameter value as param('p', $v); It would be slightly nicer if you could say param('p') = $v;
Subject: Re: [rt.cpan.org #67666] Feature request: param to be lvalue sub
Date: Thu, 21 Apr 2011 13:30:34 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Show quoted text
> CGI.pm lets you set a parameter value as > > param('p', $v); > > It would be slightly nicer if you could say > > param('p') = $v;
Thanks for the suggestion. However, no new features are being added now unless they seem essential to the life of the module. ( It may be updated to deal with new standards, environment changes, and compatibility with new versions of Perl. ) Mark
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/85 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.
OK, having though about this i'm going to reject on the grounds that CGI.pm already has two ways to interface with it, pure procedural and OO, and adding a third way is probably not a good idea. I can see how lvalue subs could be useful, but not at with CGI.pm at this stage. Thanks for the suggestion though.