Greetings oh learned wise ones. I am but a humble
(extremely humble at this point) petitioner seeing wisdom
in the ways of perl. I offer this prize goat and two
prize hens (Tyson brand).

Heres my problem. Im trying to parse some log files.
The files appear to be text files for all
intents and purposes. Yet when i read a line and print
it out it shows as double spaced....like so

     [ 2 3 : 0 9 : 0 7   1 0 - 2 9 ]   P r o c e s s i n g

Did i mention im in a windows xp environment. Ive searched
far and wide but have not fond out how to tame these
log files. I've read up on unicode thinking that the
file might be in such format. However, nothing i've
tried from those sources has helped. Then i remembered
hearing about this bastion of wisdom. What am i not
doing? I just wanna parse and go home...

Thanks,

K


In reply to How to parse input file and print without double space by kadams

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.