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

Ron Savage ron at savage.net.au
Mon Mar 25 23:53:01 EDT 2013


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;
>
>          my $type = $self->header('type'); # getter
>
>            # setter
>          $self->header(
>              charset =>   'utf-8',
>              type =>   'text/plain,
>          );
>      }
>
> However, CGI.pm' header() method requires the prefix in some cases:

Yes, that's where the problem starts.

-- 
Ron Savage
http://savage.net.au/
Ph: 0421 920 622


More information about the cgiapp mailing list