diff --git a/mozilla/webtools/bugzilla/importxml.pl b/mozilla/webtools/bugzilla/importxml.pl index e33051e533b..a11f116d972 100755 --- a/mozilla/webtools/bugzilla/importxml.pl +++ b/mozilla/webtools/bugzilla/importxml.pl @@ -51,7 +51,8 @@ use strict; # the rest of the file is compiled. BEGIN { $::path = $0; - $::path =~ s#(.*)/[^/]+#$1#; + $::path =~ m#(.*)/[^/]+#; + $::path = $1; } chdir $::path; use lib ($::path);