B::Tools - Simple B operating library
use B::Tools; op_walk { say $_->name; } $root; my @entersubs = op_grep { $_->name eq 'entersub' } $root;
B::Tools is simple B operating library.
Walk every op from root node.
First argument is the callback function for walking. Second argument is the root op to walking.
Return value: Useless.
Grep the op from op tree.
First argument is the callback function for grepping. Second argument is the root op to grepping.
Return value: Result of grep.
Get the descendants from $op.
Return value: @descendants
Copyright (C) tokuhirom.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
tokuhirom <tokuhirom@gmail.com>
B is a library for manage B things.
B::Generate to generate OP tree in pure perl code.
B::Utils provides features like this. But this module provides more simple features.
To install B::Tools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm B::Tools
CPAN shell
perl -MCPAN -e shell install B::Tools
For more information on module installation, please visit the detailed CPAN module installation guide.