CGI::Expand

CGI::Expand is a Perl module that can convert flat hash to nested data using TT2's dot convention.
Download

CGI::Expand Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brad Bowman
  • Publisher web site:
  • http://search.cpan.org/~bowmanbs/Regexp-Genex-0.07/lib/Regexp/Genex.pm

CGI::Expand Tags


CGI::Expand Description

CGI::Expand is a Perl module that can convert flat hash to nested data using TT2's dot convention. CGI::Expand is a Perl module that can convert flat hash to nested data using TT2's dot convention.SYNOPSIS use CGI::Expand; use CGI; # or Apache::Request, etc. $args = expand_cgi( CGI->new('a.0=3&a.2=4&b.c.0=x') ); # $args = { a => , b => { c => }, } # Or to catch exceptions: eval { $args = expand_cgi( CGI->new('a.0=3&a.2=4&b.c.0=x') ); } or log_and_exit( $@ ); #----- use CGI::Expand qw(expand_hash); $args = expand_hash({'a.0'=>77}); # $args = { a => }Converts a CGI query into structured data using a dotted name convention similar to TT2.expand_cgi works with CGI.pm, Apache::Request or anything with an appropriate "param" method. Or you can use expand_hash directly.If you prefer to use a different flattening convention then CGI::Expand can be subclassed. Requirements: · Perl


CGI::Expand Related Software