Re: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Rob Dixon
Nath, Alok (STSD) wrote: Hi, I have this program which extract function names from the files. My only problem is I want to extract only the function names{no brackets () needed } . Currently its extract all words after word sub but it all returns the parentheses after th

RE: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Jeff Pang
> >It is returning just 1.I think the result of the expression. Hello, Have you tested it?why that regex just return 1? See: $ perl -e '$_="sub myfunc_123(\$,\$){";my ($func_name) = /sub\s+(\w+)/;print $func_name' myfunc_123 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Nath, Alok (STSD)
Jeff, It is returning just 1.I think the result of the expression. -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 2:53 PM To: Nath, Alok (STSD); beginners@perl.org Subject: Re: Need to extract only the function name no brackets reqd

Re: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Jeff Pang
> I have this program which extract function names from the files. > My only problem is I want to extract only the function names{no >brackets () needed } . > Currently its extract all words after word sub but it all >returns > the parentheses after that. > Hello, Given

Need to extract only the function name no brackets reqd.

2007-03-30 Thread Nath, Alok (STSD)
Hi, I have this program which extract function names from the files. My only problem is I want to extract only the function names{no brackets () needed } . Currently its extract all words after word sub but it all returns the parentheses after that. my $f