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
•  Perl array access
•  Re: huffman encoding and decoding in C++...
•  Perl One Liner: Replace {(
•  Re: html including php, accessing the functions
•  Something like an INI editor or a DelimitedText-Editor
•  Error Deleting File or Folder
•  Re: How can use ASP.NET RegularExpressionValidator for alphanumeric 10 digit input
•  Re: drop-down menu selected value
•  Re: how to convert wav file to text file


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