The hash keys (when printed using Data::Dumper) were displayed within double quotes ...

Please show, don't tell - post some sample input and the actual Data::Dumper output in <code> tags. See also How do I post a question effectively?

Your description is a bit unclear on whether you mean (foo=>3) vs. ("foo"=>3), or ('foo'=>3) vs. ('"foo"'=>3). If it's the former, then Eily has already shown you the variables that control that behavior, although I would have to add that Data::Dumper is a debugging aid and not the best thing to output strings in a reliably consistent format - as long as its output is in Perl syntax it's doing its job.

On the other hand, if it's the latter example, which I am thinking is the case, then I fully agree with Corion's post - the fact that you have to decide between commas and semicolons as separators means you're dealing with CSV files in different formats, so it's reasonable to assume that one input file might say foo;bar;quz and the other "foo","bar","quz". Using Text::CSV will take care of that for you.

Just to point out one other thing: Your BEGIN { my @script_path_dirs = split('/',abs_path($0)); ... can, as far as I can tell, be replaced by the slightly more reliable use FindBin; use lib $FindBin::Bin;.


In reply to Re: Platform Dependence observed in Perl - Hash keys have different format by haukex
in thread Platform Dependence observed in Perl - Hash keys have different format by rkabhi

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.