This module will create segmentation faults if you don't know how to use it properly. Further warning: sometimes I don't know how to use it properly.

There are lots of other methods and utility functions, but they are not documented here. This is deliberate, rather than just through laziness. You are expected to have read the Perl and XS sources to this module before attempting to do anything with it.

Malcolm Beattie's B module allows you to examine the Perl op tree at runtime, in Perl space; it's the basis of the Perl compiler. But what it doesn't let you do is manipulate that op tree: it won't let you create new ops, or modify old ones. Now you can.

in the same manner as B::COP::new - this will also, however, add the lineseq op.

Finally, you can set the main root and the starting op by passing ops to the B::main_root and B::main_start functions.

This module can obviously be used for all sorts of fun purposes. The best one will be in conjuction with source filters; have your source filter parse an input file in a foreign language, create an op tree for it and get Perl to execute it. Then email me and tell me how you did it. And why.

Sets the op_next pointers in the tree in correct execution order, overwriting the old next pointers. You need to do this once you've created an op tree for execution, unless you've carefully threaded it together yourself.