summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globals.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/globals.pl b/globals.pl
index 09c9934bf..87db566c1 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1523,10 +1523,10 @@ sub max {
# Trim whitespace from front and back.
sub trim {
- ($_) = (@_);
- s/^\s+//g;
- s/\s+$//g;
- return $_;
+ my ($str) = @_;
+ $str =~ s/^\s+//g;
+ $str =~ s/\s+$//g;
+ return $str;
}
1;