Subject: | syntax errors / mutilated statements |
Hi,
in Debian we run an automatic syntax check on all modules in a package. Here are some failures that look like typos / mutilated statements:
# syntax error at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 131, near "}->new"
# Global symbol "$obj" requires explicit package name at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 131.
# Unmatched right curly bracket at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 131, at end of line
# Global symbol "$members" requires explicit package name at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 131.
# Unmatched right curly bracket at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 132, at end of line
# Can't use global @_ in "my" at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 136, near "= @_"
# Global symbol "$obj" requires explicit package name at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 137.
# syntax error at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 137, near "; }"
# Global symbol "$members" requires explicit package name at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 137.
# Unmatched right curly bracket at /usr/share/perl5/Tangram/Type/Ref/FromOne.pm line 138, at end of line
# /usr/share/perl5/Tangram/Type/Ref/FromOne.pm has too many errors.
not ok 35 - /usr/bin/perl -wc /usr/share/perl5/Tangram/Type/Ref/FromOne.pm exited successfully
# Illegal declaration of subroutine Tangram::Type at /usr/share/perl5/Tangram/Type/Date/Raw.pm line 13.
not ok 44 - /usr/bin/perl -wc /usr/share/perl5/Tangram/Type/Date/Raw.pm exited successfully
# syntax error at /usr/share/perl5/Tangram/Springfield.pm line 99, near "} )"
# /usr/share/perl5/Tangram/Springfield.pm had compilation errors.
not ok 89 - /usr/bin/perl -wc /usr/share/perl5/Tangram/Springfield.pm exited successfully
Florian