String - Module for string manipulation
use PIRL::String;
String::Trim ($text)
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.
Removes leading and trailing whitespace.
$string - Any sequence of characters
The trimmed string
Trim (" \nHello there!\n ");
Returns the string "Hello there!".
Drew Davidson and Bradford Castalia, UA/PIRL
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.
1.3 2006/03/31 01:25:49