Perl6 Pod tree walker class
Switch branches/tags
Nothing to show
Clone or download
Latest commit 94a0408 Jun 9, 2018



Walk a Pod tree and generate an event for each node.


my $to-html =; :listener($to-html) ).walk-pod($=pod);


This class provides an API for walking a pod tree (as provided by $=pod). Each node in the tree will trigger one or more events. These events cause methods to be called on a listener object that your provide. This lets you do something without a Pod document without having to know much about the underlying tree structure of Pod.

METHOD :listener( Pod::TreeWalker::Listener $object ) )

The constructor expects a single argument named listener. This object must implement the Pod::TreeWalker::Listener API.



This method walks through a pod tree starting with the top node in $pod. You can provide either an array of pod nodes (as stored in $=pod) or a single top-level node (such as $=pod[0]).


Dave Rolsky


This software is copyright (c) 2015 by Dave Rolsky.


This is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0.