in reply to Easy one for my fellow Monks
This is because the open paren has a special meaning in regular expressions -- it tells Perl that you may want to talk about whatever ends up matching between the parens later. Because you want a literal paren, you need to escape it. Try s/\(/,(/;
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(shockme) Re: Re: Easy one for my fellow Monks
by shockme (Chaplain) on Dec 20, 2001 at 03:14 UTC | |
by tye (Sage) on Dec 20, 2001 at 03:22 UTC |