Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

B::Terse (3)

Name

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

Synopsis

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

Description

Perl Programmers Reference Guide                                   B::Terse(3)



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

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

DESCRIPTION
       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 "terse" to 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 "terse"
       method, however, doesn't work well. Since B::Terse was first written,
       much more information in OPs has migrated to the scratchpad
       datastructure, but the "terse" interface 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.

AUTHOR
       The original version of B::Terse was written by Malcolm Beattie,
       <mbeattie@sable.ox.ac.uk>. This wrapper was written by Stephen
       McCamant, <smcc@MIT.EDU>.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
       +---------------+-----------------------+
       |Availability   | runtime/perl-532      |
       +---------------+-----------------------+
       |Stability      | Pass-through volatile |
       +---------------+-----------------------+

NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.cpan.org/src/5.0/perl-5.32.0.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.perl.org/.



perl v5.32.0                      2020-06-14                       B::Terse(3)