mf44 0 Newbie Poster

Hello! Good morning. I am a newbie to perl. Sorry for the "stupid" question.

Need your help on a perl one liner. Can't figure out how to add into the line.

Currently have the following line: perl -pi -e 's='\{"$Poly_Map"=\{"$Poly_Map"F= temp_list

This to search something like:

A1_0 {A1_0 size by 0.003 overunder} --> turn into A1_0 {A1_0F size by 0.003 overunder}

But what is the command to do the below (notice the extra bracket below):

A1_0 {(A1_0 size by 0.003 overunder) size by 0.003 underover} --> turn into A1_0 {(A1_0F size by 0.003 overunder) size by 0.003 underover}

If I do like below, it will cause error.
perl -pi -e 's='\{("$Poly_Map"=\{("$Poly_Map"F= temp_list

Can anybody help? Thank you very much in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.