Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-31 Thread 穴 澤 亮
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

Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-29 Thread Mark Stosberg
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

Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-29 Thread 穴 澤 亮
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

Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-25 Thread Ron Savage
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

Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-25 Thread Mark Stosberg
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

Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-25 Thread Ron Savage
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

Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-25 Thread Ron Savage
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;

Re: [cgiapp] Re lease CGI::Application::Plugin::Header

2013-03-25 Thread Ryo Anazawa
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: