|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
ArrTrim() - Trim Each Element of An Arraysub ArrTrim {
# Purpose
# Trims each element of an array.
# Parameters
# Arr (Array) = Each element of this array is trimmed.
# Return (Array)
# Returns the specified array (Arr) with leading and trailing whitespaced removed from each element.
my @r; # Return buffer
foreach (@_) {
push(@r, StrTrim($_));
}
return @r;
}
|
|
|
|
Entire Thread
|
ArrTrim() - Trim Each Element of An Array
|
Russ
|
11/25/08 04:46 PM
|
|
|
|