From 75f667d06000cebdea19f733463494b860d635b1 Mon Sep 17 00:00:00 2001 From: "zach%zachlipton.com" <> Date: Mon, 17 Dec 2001 09:29:52 +0000 Subject: Fix for bug 113646, midair when changing assignee gives error. Fix changes sub trim() in globals.pl not to use $_ so as not to conflict with $_ values allready set. Patch by myk@mozilla.org, r1=bbaetz, r2=dave. --- globals.pl | 8 ++++---- 1 file 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; -- cgit v1.2.3-24-g4f1b