13 Mar 2022 08:40:18 UTC
- Distribution: perl
- Module version: 1.09
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2152)
- KwaliteeBus factor: 15
- License: perl_5
- Download (17.35MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:211 non-PAUSE users
B::Terse - Walk Perl syntax tree, printing terse info about ops
perl -MO=Terse[,OPTIONS] foo.pl
This module prints the contents of the parse tree, but without as much information as CPAN module B::Debug. For comparison,
print "Hello, world."produced 96 lines of output from B::Debug, but only 6 from B::Terse.
This module is useful for people who are writing their own back end, or who are learning about the Perl internals. It's not useful to the average programmer.
This version of B::Terse is really just a wrapper that calls B::Concise with the -terse option. It is provided for compatibility with old scripts (and habits) but using B::Concise directly is now recommended instead.
For compatibility with the old B::Terse, this module also adds a method named
terseto B::OP and B::SV objects. The B::SV method is largely compatible with the old one, though authors of new software might be advised to choose a more user-friendly output format. The B::OP
tersemethod, however, doesn't work well. Since B::Terse was first written, much more information in OPs has migrated to the scratchpad datastructure, but the
terseinterface doesn't have any way of getting to the correct pad. As a kludge, the new version will always use the pad for the main program, but for OPs in subroutines this will give the wrong answer or crash.
The original version of B::Terse was written by Malcolm Beattie, <firstname.lastname@example.org>. This wrapper was written by Stephen McCamant, <smcc@MIT.EDU>.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|