in reply to Re: replace java code when not commented
in thread replace java code when not commented
use strict; use warnings; while (<DATA>){ print /^\s*(public)|^\s*(private)/?$_ = "/*".$_."*/\n":"$_\n"; } __DATA__ /** * public void method1(); * is deprecated */ public void method1(); rgrprivate void method2(); private void method3();
|
|---|