> qx interpolates variables. by the time $1 gets to perl, it's > already gone. > try: > > print qx(perl -pi -e 's/^$u:hello:([^:]*):/$u:goodbye:\$1/;' file); >
That did it! Thanks a million for pointing that out! > why not simply: > > [panda]$ perl -pi -e > 's/^datax:hello:([^:]*):/datax:goodbye:$1/;' file [panda]$ I have to run it in a script that replaces the data with user input among other things. So that's one of many tasks needed to be done in a certaibn order for theis script to do it's thing. > > david Thanks Again David! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]