Programmatically compiling (perl -c) a Perl file

"Ludwig, Michael" <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
As a basic quality check against a needy code base, I want to ensure that every file at least compiles (perl -c). Some don't because they are require'd at runtime by others and depend on them to have set their global variables. And some die due to stuff in their BEGIN blocks, which should go to INIT.

I could certainly collect a list of file and call "perl -c" on each of them.

However, I'm curious: Is it possible to invoke the compiler programmatically using the O and B::* modules? How exactly? Haven't discovered this in:

* perlcompile
* O
* B

Feel free to redirect me to a more appropriate forum. Thanks.
-- 
Michael Ludwig 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.