On Thu, Jan 17, 2002 at 02:08:16PM -0500, Richard J. Barbalace wrote: > Rajanikanth Dandamudi <[EMAIL PROTECTED]> writes: > > Can someone help me in getting the coverage of a perl > > program. I had used the Coverage module of the perl > > distribution by issuing a command: > > perl -d:Coverage script_name [ args ] > > There's very little documentation in Devel::Coverage's perldoc, > but some more is in its README file: > http://theoryx5.uwinnipeg.ca/CPAN/data/Devel-Coverage/README.html > > This package looks like a good idea, but sounds like it is still too > early to work with usefully. The package does not seem to have been > updated in the past year, so you might ask the author if he has a > newer version, or is working on one.
You may wish to check out my Devel::Cover module, available from CPAN or my homepage. It uses a totally different approach to that Devel::Coverage, by replacing perl's runops function to collect information about what is run, and then using the compiler modules to map that information back to source code. This approach has the advantage of allowing much more than just statement coverage (which is all Devel::Coverage can support), and of running much faster. It has the disadvantages of requiring Perl 5.6.1 as a minimum, of being rather new, and of relying on me to find time to improve it. If you are serious about Perl and Code Coverage I suggest you join the perl-qa list. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]