NAME

Data::Text - Class to handle text in an OO way

VERSION

Version 0.03

SYNOPSIS

Handle text in an OO way.

SUBROUTINES/METHODS

new

Creates a Data::Text object.

append

Adds data to the end of the object. Contains a simple sanity test for consecutive punctuation. I expect I'll improve that.

Successful calls to append() can be daisy chained.

The argument can be a reference to an array of strings, or an object. If called with an object, the message as_string() is sent to it for its contents.

as_string

Returns the text as a string.

length

Returns the length of the text.

trim

Removes leading and trailing spaces from the string.

AUTHOR

Nigel Horne, <njh at bandsman.co.uk>

BUGS

SEE ALSO

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Data::Text

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2021 Nigel Horne.

This program is released under the following licence: GPL2