in reply to Re: replace java code when not commented
in thread replace java code when not commented

this is good! Use gubes method. heres my extention applied to it.
while(<DATA>) { $_ =~ s/^\s*((public|private)[^\n]+)/\/\*$1\*\//si; print $_; }