unless ($a =~ /$b/) { $a = $b; } [download]
In reply to Re: Replace $a with $b if $a ne $b by cog in thread Replace $a with $b if $a ne $b by Anonymous Monk