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:

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});
From the Catalyst server debug log I see the following output:
[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:
Anyone have an idea has to how this is happening?


In reply to Weird hash ref variable issue by vendion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.