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

AUTHOR

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