From: Donncha O Caoimh (donncha.ocaoimh at domain tradesignals.com)
Date: Wed 28 Jul 1999 - 17:33:49 IST
I have to search and replace a string in a number of files but the perl
script I'm using to search and replace is giving an error on the "(" in
the string. I tried \( or (( or even \\( to no avail. I'm just trying to
print a normal "(", and not the start of a group :|
This is the error:
unmatched () in regexp at ./sar.pl line 87, <INFILE> chunk 1.
Line 87 is a simple
$_ =~ s/"$searchfor"/"$replacewith"/;
Any help would be much appreciated as this has to be done really
quickly!
Donncha.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:24 GMT