in reply to Removing @poseidon tags from java code

All I would like to do is to remove the entire line which starts with

* @poseidon ...

print FILE map { s/.*\@poseidon$/ /g; $_; } @lines;

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; ^^