From: ivan Date: Wed, 3 Aug 2005 18:10:49 +0000 (+0000) Subject: backport fix from 1.5 for "can't declare scalar assignment in my" error X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=refs%2Fheads%2FFREESIDE_1_4_BRANCH;p=freeside.git backport fix from 1.5 for "can't declare scalar assignment in my" error --- diff --git a/FS/FS/cust_main_county.pm b/FS/FS/cust_main_county.pm index 4ea2199b2..a31c300bc 100644 --- a/FS/FS/cust_main_county.pm +++ b/FS/FS/cust_main_county.pm @@ -193,7 +193,7 @@ END foreach my $country ( sort keys %cust_main_county ) { $script_html .= "\nif ( country == \"$country\" ) {\n"; foreach my $state ( sort keys %{$cust_main_county{$country}} ) { - my( $dstate = $state ) =~ s/\n//g; + ( my $dstate = $state ) =~ s/[\n\r]//g; my $text = $dstate || '(n/a)'; $script_html .= qq!opt(what.form.${prefix}state, "$dstate", "$text");\n!; }