It works just fine, out of the box. I remove the newline character from the last line, it prints 2. I convert to \r\n and it still prints 2. I port it to mysql, guess what.... it prints 2.
$ perl -MDBI -e 'DBI->installed_versions' Perl : 5.008008 (i386-linux-thread-multi) OS : linux (2.6.9-34.elsmp) DBI : 1.53 DBD::mysql : 4.001 DBD::Sponge : 11.10 DBD::SQLite : 1.13 DBD::Proxy : install_driver(Proxy) failed: Can't locate RPC/PlC +lient.pm in @INC DBD::Pg : 1.49 DBD::Mock : 1.34 DBD::InterBase : 0.46 DBD::File : 0.35 DBD::ExampleP : 11.12 DBD::DBM : 0.03

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!


In reply to Re: Oddity with CSV query by naikonta
in thread Oddity with CSV query by Tanktalus

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.