
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
...
IMHO, it is work for simple perl script. Parsing techniques is overkill there.
something in style
$*=~/\/\/is.read_value(val);/is_read_value(val)/; $*=~/throw new org.omg.CORBA.NO_IMPLEMENT();/\/\/throw new org.omg.CORBA.NO_IMPLEMENT();/;
Keep in mind that you're assuming something about the lexical programming style used by the source code's author. If you want to be generic, you must accommodate arbitrary whitespace between tokens and even comments placed anywhere whitespace might occur. For example, I occasionally must split lines at a ".", and that would break your first targeting RE.
| <-- __Chronological__ --> | <-- __Thread__ --> |