in reply to Weird hash ref variable issue
According to Data::FormValidator::Results the ->valid method "...returns an hash reference which contains the valid fields as keys and their input as values". That seems to indicate that you could replace your my $data = {painful enumeration }; with my $data = $results->valid;. Then, use Data::Dumper; print Dumper($data); will show if any of the results are anything other than the scalars you expect.
update - right, Catalyst. Make that use Data::Dumper; $c->log->debug("\$data:\n".Dumper($data));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Weird hash ref variable issue
by vendion (Scribe) on Oct 25, 2011 at 14:23 UTC |