I'm looking in our code for something that looks very much like:
#$foo="bar";
$foo="baz";
Problems:
- I don't know the name of the variable
- I don't know which line is actually commented out.
- I really don't seem to be able to properly write a multi-line regex.
My initial attempt was ack /\$(.\*)=.\*$\$($1)=/
I prefer ack usually for code grepping, but I don't mind using grep either. JWZ probably thinks I have way more than 2 problems by now.