kaasboy has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: do not understand [Fatal] message
by graff (Chancellor) on Nov 26, 2007 at 04:50 UTC | |
by kaasboy (Initiate) on Nov 27, 2007 at 20:59 UTC | |
|
Re: do not understand [Fatal] message
by localfilmmaker (Novice) on Nov 26, 2007 at 05:07 UTC | |
|
Re: do not understand [Fatal] message
by narainhere (Monk) on Nov 26, 2007 at 08:56 UTC | |
|
Re: do not understand [Fatal] message
by nadeem55 (Initiate) on Nov 26, 2007 at 07:24 UTC |