Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-FormHandler CPAN distribution.

Report information
The Basics
Id: 55833
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

People
Owner: Nobody in particular
Requestors: ovid [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.30003
Fixed in: (no value)



Subject: Dot in form params breaks form handling
The following is a minimal test case showing the error: use HTML::FormHandler; my $form = HTML::FormHandler->new( field_list => [ '(.1)' => { type => 'Text' } ] ); $form->process( params => { '(.1)' => 2 } ); use Data::Dumper; print Dumper( $form->params ); The output: $VAR1 = { '(' => { '1)' => 2 } }; If you remove the dot: $VAR1 = { '(1)' => 2 }; Cheers, Ovid
FormHandler treats periods in params specially, because they are used for compound fields. If you want to provide names such as you mention, you can change the separator for the params class using: params_args => [separator => '#'].