The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.18

  • You can pass a media type to new() in the following situation:
    • my $h = CGI::Header->new('text/plain'); $h->header; # => { -type => 'text/plain' }
  • new() throws an exception in the following situation:
    • my $h = CGI::Header->new( -foo => 'bar', '-baz' );
    • die "Odd number of elements in hash assignment"
  • STATE OF THIS MODULE
    • The following methods are unstable:
      • $h->set( 'Content-Type => $value )
      • $h->set( 'P3P' => $value )
      • $h->set( 'Expires' => $value )
        • I'm not sure about how to process these headers properly at this time.

Modules

Adapter for CGI::header() function