I am having a weird issue when assigning data to a hash ref from the output from Data::Formvalidator in a catalyst app. The problem is when I print the values of the hash_ref and compare against what came back from Data::Formvalidator they differ and I don't see why they would.
Here is what I am doing in my Code:
From the Catalyst server debug log I see the following output:my $data = { name => $results->valid('name'), url => $results->valid('url'), gagline => $results->valid('gagline'), shortdescript => $results->valid('shortdescript'), descript => $results->valid('descript'), stable => $results->valid('stable'), dev => $results->valid('dev'), stablerelease => $results->valid('stablerelease'), devrelease => $results->valid('devrelease'), active => $results->valid('active'), schangelog => $results->valid('schangelog'), dchangelog => $results->valid('dchangelog'), }; $c->log->debug('Gag Line 1: ' . $results->valid('gagline')); $c->log->debug('Short Description 1: ' . $results->valid('shortdescrip +t')); $c->log->debug('Description 1: ' . $results->valid('descript')); $c->log->debug('Gag Line 2: ' . $data->{gagline}); $c->log->debug('Short Description 2: ' . $data->{shortdescript}); $c->log->debug('Description 2: ' . $data->{descript});
Anyone have an idea has to how this is happening?[debug] Gag Line 1: [debug] Short Description 1: A Custom CMS [debug] Description 1: Ickarus is a custom CMS made by Shimazu Labs fo +r Shimazu Labs. [debug] Gag Line 2: shortdescript [debug] Short Description 2: [debug] Description 2:
In reply to Weird hash ref variable issue by vendion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |