codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Perl One Liner: Replace {(  mf44 at 06:22 on Thursday, October 22, 2009
 

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.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009