I have a string having the following format:
ip = 192.168.1.2
user = test
password = test0
ip =, user = and password = are fixed but the strings to the right of the equals signs may vary.
Using Perl, I would like to write a one-line command to replace the string following user = with a given string, say, X, to return the following new string: 
ip = 192.168.1.2
user = X
password = test0
Thanks for your help.
 
     
    