The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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)