Nigel Hamilton

NAME

Goo::TextUtilities - Miscellaneous utilities for handling text

SYNOPSIS

use Goo::TextUtilities;

DESCRIPTION

METHODS

get_hostname

return a hostname from the url

strip_hreftags

strip all href tags in a string

uppercase_first_letters

turn the first letters of each word into uppercase

escape_url

escape a url string

strip_funky_html

strip any HTML that is too funky for a normal tag strip

strip_html

strip the HTML from a string

trim_whitespace

strip whitespace from the front and back of a string

compress_whitespace

compress excess whitespace from many spaces to one space

right_pad

pad a string on the righthand side up to a maximum number of characters

strip_last_word

strip the last word off the end of a string

left_pad

pad a string on the lefthand side up to a maximum

truncate_string

reduce the size of the string and remove the last word

escape_javascript

escape double quotes etc.

get_matching_line_number

return the linenumber that matches the regex

AUTHOR

Nigel Hamilton <nigel@trexy.com>

SEE ALSO