in reply to Re^2: reading a java program
in thread reading a java program

Have a list like this @method_ary =('met1','set1','wat1'); Then change this line to
$line =~ s#public void $_(.*?)\);#/*$&*/#gs,for(@method_ary);

Replies are listed 'Best First'.
Re^4: reading a java program
by neeha (Novice) on Mar 14, 2006 at 09:27 UTC
    Thank u very much Praveen.
    I am very new to writing perl scripts.I am basically a Java Programmer. It is amazing that u can do so much in just one line of perl script. I have one more clarification.
    public void method1(String str1,String str2)
    I am reading this java program using perl
    Can i know how many parameters are there in this "method1" Right now i am doing lot of manipulations like substring and using split to get the no of parameters. is there any short way or correct way of doing it.