Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Sirs,
Attempting to install a perl calendar scritp, I get the error
Premature end of script headers: /home/local/public_html/cgi-bin/event +calendar.pl Unrecognized character \332 at /home/theperuv/public_html/cgi-bin/even +tcalendar at line 215
line 215 is in this group of code
# Loop thru each hash and see if it repeats # Copy hash keys to prevent looping over aready updated dayinfo hash # This is the rev. 1.1 fix my(@dayinfokeys) = keys(Úyinfo); foreach $index (@dayinfokeys) { # Read the repeat number to see if other hashes need to be made # Split each entry into an array my($element) = ""; my(@entry) = (); foreach $element (@{ $dayinfo{$index} }) { my(@entry) = split('{',$element);

Does anyone able to tell me what this error means and how to fix it
Thanks, Tyler

Replies are listed 'Best First'.
Re: unrecognized character\332
by dws (Chancellor) on Jan 26, 2002 at 10:49 UTC
    It looks like   my(@dayinfokeys) = keys(Úyinfo); is corrupted. I'll bet it should be   my(@dayinfokeys) = keys(%dayinfo);
      Thanks dws,
      That stopped the unrecognised character error.
      But I am still getting the
      Premature end of script headers
      What does that tell me.
      Thanks,Tyler
        "Premature end of script headers" tells you that the script has failed to produce a correct HTTP header before exiting, possibly because there is either a runtime or a compile time error in the script.

        There are several reasons why this might be so. Many are discussed on this site. Use this as an opportunity to explore here. Try typing "Premature" into the Search field, and look at some of the nodes that the search unearths. Many will provide useful info.