Rocky Bernstein


deparse [address options] [0xOP-address | . ] [dump | tree] deparse [B::DeparseTree-options] {filename | subroutine}

In the first form with an OP address, "," or no arguments, deparse around where the program is currently stopped. If "dump" or "tree" is given we show lower-level output from B::DeparseTree::Print. In the former case, just for the opcode and in the later case for the deparsed tree.

In the second form with a function or filename, B::DeparseTree shows information for that file or function.

B::DeparseTree options:

    -d  Output data values using Data::Dumper
    -l  Add '# line' comment
    -a  Add 'OP addresses in '# line' comment
    -P  Disable prototype checking
    -q  Expand double-quoted strings


Deparse Perl source code using B::DeparseTree.

Without arguments, deparses the current statement, if we can.


  deparse             # deparse current statement
  deparse -a          # deparse current statement showing
                      # line and OP address
  deparse 0xcafebabe  # decode an opcode address.
  deparse @0xcafebabe # same as above
  deparse -l

See also:

list, and B::DeparseTree for more information on deparse options.