Perl command to replace path part of variable

I'm trying to replace path which is part of variable inside script file:

FROM:

ABC_HOME=$ABC_ROOT/abc/1.0

TO:

ABC_HOME=$ABC_ROOT/abc/1.5

I'm using this:

perl -pi -e 's\ABC_HOME=$ABC_ROOT/abc/1.0\ABC_HOME=$ABC_ROOT/abc/1.5\g' /apps/scripts/test.sh

This command is not working because "=" sign. Is there a way to modify this command to make it work?

Thanks,
djanu

Problem is not in '=', its in the dollar sign. You need to escape the dollar (and use other delimiter for s//g):

$ cat test 
ABC_HOME=$ABC_ROOT/abc/1.0
$ cat test |  perl -pe 's+ABC_HOME=\$ABC_ROOT/abc/1.0+ABC_HOME=\$ABC_ROOT/abc/1.5+g' 
ABC_HOME=$ABC_ROOT/abc/1.5

Thank you!