Perldoc::DOM::Text - text node in a Perldoc::DOM tree
See Perldoc::DOM::Node.
A Perldoc::DOM::Text represents a little slice of content in a Perldoc DOM tree.
Perldoc::DOM::Text
It has one property - content.
The constructor for this class has a special shortcut syntax compared to normal Perldoc::DOM::Node's / Tree::DAG_Node's - instead of specifying options as a hash;
Perldoc::DOM::Node
Tree::DAG_Node
Perldoc::DOM::Text->new({ content => "foo", source => "foo" });
You can just say;
Perldoc::DOM::Text->new("foo");
(also, the latter form is slightly more efficient, though this is marginal in string COW environments)
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.