Text::Decorator::Node - A blob of text in a Text::Decorator decoration
my $node = Text::Decorator::Node->new($text); $node->format_as("html");
This represents a piece of text which is going to undergo formatting and decoration.
my $node = Text::Decorator::Node->new($text);
Creates a new Text::Decorator::Node instance with the specified text.
$node->format_as($representation)
Returns this node in the specified representation, or plain text.
To install Text::Decorator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Decorator
CPAN shell
perl -MCPAN -e shell install Text::Decorator
For more information on module installation, please visit the detailed CPAN module installation guide.