http://www.perlmonks.org?node_id=1041047

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

Suddenly I cannot continue working on Perl program, as I get that strange error:
Compilation error at /usr/share/perl/5.14/utf8_heavy.pl line 447
What is strange, I did undo to the point where it was working all fine, and this is yet again showing.

Replies are listed 'Best First'.
Re: Compilation error at /usr/share/perl/5.14/utf8_heavy.pl line 447
by Loops (Curate) on Jun 27, 2013 at 16:53 UTC

    You didn't undo all the changes. Something is still broken. Unfortunately, nobody here will be able to tell you what is wrong unless you make the script available for inspection.

Re: Compilation error at /usr/share/perl/5.14/utf8_heavy.pl line 447
by davido (Cardinal) on Jun 27, 2013 at 21:38 UTC

    Here's line 447 of utf8_heavy.pl on my version of Perl 5.14:

    $list = do $file; die $@ if $@;

    I only spent a couple of minutes looking at the (disturbingly ugly) utf8_heavy.pl code, but gather that $file is supposed to be a code file of utf8 definitions of some sort. In your case, $file contains something that your version of Perl can't compile.

    Did someone screw up your system Perl by attempting to manually install some upgraded components? That's what it looks like to me.


    Dave

      Thank you, I found what it was, the problem was that I used something like:
      $page_content{$image} = edit_string("CONTENT\n=====\n\n");
      Without my %page_content However, I wonder why I don't get normal perl errors, but have to find out myself what is wrong.