Hi,
I don't think so. The rehashed header props. might be flattened into a list of
the key-value pairs and then passed to CGI.pm's header() method directly:
use CGI qw/header/;
my $rehashed_header_props = { -type = 'text/plain' };
print header( %{$rehashed_header_props} );
If keys
On 03/25/2013 02:55 PM, Ryo Anazawa wrote:
Hi all,
Thanks for maintaining CGI::Application.
I'll release yet another CGI::Application plugin,
CGI::Application::Plugin::Header, on CPAN soon.
I've taken a second look at this, and have some more feedback on it.
- The docs open by
Hi Mark,
Thanks for your reply. Your suggestion meant a lot to me :)
I think CGI::Header::Props is not the replacement for CGI.pm,
but complements CGI.pm. Though I agree CGI.pm is dated,
the query class can't be replaced with another module like Plack::Request
or Plack::Response in some cases
Hi Ryo
Why on earth do you use a '-' prefix on parameters?
That is user-hostile code, like the '--' required on the command line
for (some) apps.
Yes, I know that many, many years ago '--' was used to distinguish
between command line parsers, where the original used '-', but that's a
red
On 03/25/2013 05:04 PM, Ron Savage wrote:
Hi Ryo
Why on earth do you use a '-' prefix on parameters?
While I wouldn't use the - prefix in documentation or otherwise
promote it, I could see silently or quietly *supporting* it, if one one
of your objectives is to be CGI.pm-compatible.
He
Hi Mark
But supporting it adds complexity for no gain :-(.
--
Ron Savage
http://savage.net.au/
Ph: 0421 920 622
# CGI::Application community mailing list
####
## To unsubscribe, or change your message delivery
Hi
On 26/03/13 14:31, Ryo Anazawa wrote:
Thanks for your reply.
I wouldn't use a '-' prefix, too, and so I'll remove the prefix from
SYNOPSIS.
Excellent!
I agree we shouldn't promote it. SYNOPSIS should be as follows:
Excellent!
sub do_something {
my $self = shift;
Thanks for your reply.
Yes, that's one of my goals.
Mark Stosberg wrote:
He stated that one of his goals is CGI.pm-comptible HTTP header
properties.
Thanks for your suggestion :)
Best regards,
Ryo
--
View this message in context: