Your browser doesn't seem to support CSS, which this page uses for all styling. Don't be surprised if it looks kinda boring.

[Jump to nav]

CGI::Struct

Overview

CGI::Struct is a module to build data structures from CGI query parameters. This is similar to what PHP does with building arrays, but in a more perl-ish way. For instance, perl has both arrays and hashes and distinct structures; this encompasses that.

Docs?

In the package, sure. You can read it on CPAN.

Releases

The current release is CGI::Struct 1.21. Installing it works just like any other perl module; see the README for details.

This release fixed a test failure (problem in test, not code) that hash randomization made more obvious, and made some minor improvements to the docs.

Ex-releases

No real reason you want them, but what the hey...

  • 1.20 added a few features. It automatically splits strings on \0 to create arrays, which handles the default behavior of CGI.pm and some alternates that try to follow it closely. References inside the structure are now deep-cloned by default instead of just ref'ing them, to make sure the return value is fully indepdendent of the passed value. And various occurances of '{' in regular expressions in the test suite are now \-escaped to improve compatibility with perl 5.17 and above.
  • 1.12 fixed the test suite on perl 5.6.2 (the module itself worked, just the test suite had some glitches), makes some additional improvements to the test suite, and makes a few minor improvements to the documentation. No code changes.
  • 1.11 improved the documentation relative to 1.10, and added some extra tests. There were no code changes.
  • 1.10 added the ability to disable parsing of '.' as a hash key separator, for the cases where you want keys that include periods.
  • 1.00. is the initial release.

Wait, this is perl. Shouldn't it be on CPAN?

Well, yeah. It is, right there on my CPAN page.