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