1B::Terse(3pm)          Perl Programmers Reference Guide          B::Terse(3pm)
2
3
4

NAME

6       B::Terse - Walk Perl syntax tree, printing terse info about ops
7

SYNOPSIS

9               perl -MO=Terse[,OPTIONS] foo.pl
10

DESCRIPTION

12       This module prints the contents of the parse tree, but without as much
13       information as B::Debug.  For comparison, "print "Hello, world.""
14       produced 96 lines of output from B::Debug, but only 6 from B::Terse.
15
16       This module is useful for people who are writing their own back end, or
17       who are learning about the Perl internals.  It's not useful to the
18       average programmer.
19
20       This version of B::Terse is really just a wrapper that calls B::Concise
21       with the -terse option. It is provided for compatibility with old
22       scripts (and habits) but using B::Concise directly is now recommended
23       instead.
24
25       For compatibility with the old B::Terse, this module also adds a method
26       named "terse" to B::OP and B::SV objects. The B::SV method is largely
27       compatible with the old one, though authors of new software might be
28       advised to choose a more user-friendly output format. The B::OP "terse"
29       method, however, doesn't work well. Since B::Terse was first written,
30       much more information in OPs has migrated to the scratchpad
31       datastructure, but the "terse" interface doesn't have any way of
32       getting to the correct pad. As a kludge, the new version will always
33       use the pad for the main program, but for OPs in subroutines this will
34       give the wrong answer or crash.
35

AUTHOR

37       The original version of B::Terse was written by Malcolm Beattie,
38       <mbeattie@sable.ox.ac.uk>. This wrapper was written by Stephen
39       McCamant, <smcc@MIT.EDU>.
40
41
42
43perl v5.28.2                      2018-11-01                     B::Terse(3pm)
Impressum