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

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

All of a sudden I am unable to run any perl scripts. For example when I issue from a command prompt:
perl -e 0

I get the following:
perl -e 0
syntax error at -e line 1, near "0"
Execution of -e aborted due to compilation errors.


All programs also crash at the first command. Has anyone ever experienced this?

Replies are listed 'Best First'.
Re: Perl compilation errors
by earthboundmisfit (Chaplain) on Sep 13, 2001 at 00:28 UTC
    Need more info such as OS and Perl version. It sounds to me like a Win32 file mapping or path problem, but that's only because it's what I deal with (too often).
      This is Perl version 5.005_03 running on Red Hat Linux 6.2
      Everything has worked great on this box for a long time, and all of a sudden today I am getting these errors.
        If perl was installed via rpm, does rpm -V perl produce any output?
Re: Perl compilation errors
by chromatic (Archbishop) on Sep 13, 2001 at 01:13 UTC
    What's the output of perl -V? Also, what's the output of <code>which perl<code>?
Re: Perl compilation errors
by earthboundmisfit (Chaplain) on Sep 13, 2001 at 18:33 UTC
    What's changed on the box? If you su root -p and then run your one liner does it balk? If not, you have a permissions problem on the Perl directories.