bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix perl scripts for perl -c


From: Bernd Warken
Subject: Re: Fix perl scripts for perl -c
Date: Fri, 22 Aug 2008 14:48:42 +0200

> Von: "Alexey Gladkov" <address@hidden>

> Script groffer.pl failed perl syntax check:
> 
> perl -c /tmp/groffer.pl
> /tmp/split_env.sh does not exist; at /tmp/groffer.pl line 151.
> BEGIN failed--compilation aborted at /tmp/groffer.pl line 167.
> 
> Do not keep application specific code inside BEGIN block. BEGIN is run 
> when you use the -c switch for a syntax check.
> 
> http://perldoc.perl.org/perlmod.html#BEGIN,-UNITCHECK,-CHECK,-INIT-and-END

You should not run perl -c on the source code.  When run on the installed
version everything is ok.

$ perl -c /usr/local/bin/groffer
/usr/local/bin/groffer syntax OK

Bernd Warken





reply via email to

[Prev in Thread] Current Thread [Next in Thread]