johnnywang has asked for the wisdom of the Perl Monks concerning the following question:
"perl -c foo.pl" only checks the syntex error, so even the following passes:
The same is true for:use strict; foo();
Is there anyway to check this type of linking error? I guess since one can use a variable as a function name, one can't really check all except running the program. But I'd like to do a "build" on all my perl scripts/modules, and catch this type of error, is that possible? (this is related to: Perl and code reviewsuse strict; use FOO; #assuming it exists my $foo = Foo->new(); $foo->some_non_existing_function();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: How to check program links correctly?
by merlyn (Sage) on Aug 20, 2004 at 00:04 UTC | |
|
Re: How to check program links correctly?
by tachyon (Chancellor) on Aug 20, 2004 at 00:48 UTC | |
|
Re: How to check program links correctly?
by tachyon (Chancellor) on Aug 20, 2004 at 04:01 UTC | |
|
Re: How to check program links correctly?
by TilRMan (Friar) on Aug 20, 2004 at 09:50 UTC |