B::CodeLines - Lists executable lines of a Perl program
perl -MO=CodeLines foo.pl perl -MO=CodeLines,-exec -e '# string exec form $your="Perl code"; goes("here"); '
This compiler backend prints the out the line numbers of the stopping points of a Perl program. It might be used for example for static analysis to see of all lines have been executed, or in a when debugger breakpoint is requested (and other ways to get stopping points fails).
For the second example above, the output is: 2 3 -e syntax OK
Copyright (c) 2012 Rocky Bernstein.
Same terms as Perl.
To install B::CodeLines, copy and paste the appropriate command in to your terminal.
cpanm
cpanm B::CodeLines
CPAN shell
perl -MCPAN -e shell install B::CodeLines
For more information on module installation, please visit the detailed CPAN module installation guide.