NAME

String - Module for string manipulation


SYNOPSIS

  use PIRL::String;

  String::Trim ($text)


DESCRIPTION

Module that allows the user to manipulate strings in different ways. The functions do not modify the string passed in as an argument. Rather, they return a copy of the string with the desired operation performed upon it.


SUBROUTINES

Trim

Removes leading and trailing whitespace.

Parameters

$string - Any sequence of characters

Return

The trimmed string

Example

    Trim ("  \nHello there!\n         ");

Returns the string "Hello there!".


AUTHOR

Drew Davidson and Bradford Castalia, UA/PIRL


COPYRIGHT

Copyright (C) 2005, 2006 Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


VERSION

1.3 2006/03/31 01:25:49