Hi, The above code is not working for me. My requirement is to convert tab delimited file to CSV file. I am pasting below records 0000709a1470a60284e3b243f713f5cb NULL 70304222 14165222 235588862 1 00010cc71380a0aa17070f07fc36a6be 734255876 70303022 14165222 235588862 1 000142841420a2a805916731fc6bad60 125729237 70303022 14165222 235588862 1 000144231480a5f162664e26ff3ca308 NULL 70304222 14165222 235588862 1 I want to replace tabs as comma.I will appreciate your help if any one can reply ASAP

In reply to Re^3: Perl script help to convert .txt file to .csv by ssrao40
in thread Perl script help to convert .txt file to .csv by Seabass

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.