NAME
Perldoc::DOM::Text - text node in a Perldoc::DOM tree
SYNOPSIS
See Perldoc::DOM::Node.
DESCRIPTION
A Perldoc::DOM::Text
represents a little slice of content in a Perldoc DOM tree.
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::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)