in reply to Removing @poseidon tags from java code
All I would like to do is to remove the entire line which starts with
print FILE map { s/.*\@poseidon$/ /g; $_; } @lines;
* @poseidon ...
Instead of the $, you want to match the remainder of the line there (otherwise it won't match/be substituted), i.e.
print FILE map { s/.*\@poseidon.*/ /g; $_; } @lines; ^^
|
|---|