Hello Wise Monks

I have a question about some scripting that a programmer (who has now left) at my work did for a report I run. I run two reports get the phone performace stats of our agents. These are saved as .csv files into a folder and the Perl program runs every minute, it then spits out a 3rd giving me a condensed version of the two with some more specific info. We recently upgraded our phone reporting system and now the Perl report won't run. I am producing the 2 .csv files but now when I run it the output txt says:

"[FATAL] (3) Encountered line of unknown length (11)"

I have asked the IT guys here what could be causing the problem but no-one knows Perl. I got a copy of the script and this is the line that seems to relate to the error message:

print "[DEBUG] ($.) Call Length det='$detail' ($dh:$dm:$ds)\n" if $DEB +UG; } else { # TODO : Might want to issue an alert and solder on! safedie "[FATAL] ($.) Encountered line of unknown length (",$#line + 1 +,")";

Can you please advise what Perl is telling me about the .csv files? I have looked over copies of ones that worked and ones that don't and I can't see what could be causing the problem.

Thanks very much for any wisdom you can offer!

20071129 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips


In reply to do not understand [Fatal] message by kaasboy

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.