Perl 字符串替换问题

Perl String replacement issue

我有如下所示的字符串,

$str = 'dev-phase-to-improve == "NOTEQUAL"'

我要替换:

dev-phase-to-improve == "NOTEQUAL"  

!dev-phase-to-improve=""

想知道我该怎么做,我的代码如下所示,

$rc_link =~ s/'dev-phase-to-improve == "NOTEQUAL"/!dev-phase-to-improve=""/ig;

但它不起作用。有什么想法吗?

正在运行,查看此

my $str = 'dev-phase-to-improve == "NOTEQUAL"';
$str=~ s/dev-phase-to-improve == "NOTEQUAL"/\!dev-phase-to-improve=""/g;
print $str."\n";