RE: Need to extract only the function name no brackets reqd.
- From: pangj@xxxxxxxxxxxxx (Jeff Pang)
- Date: Fri, 30 Mar 2007 17:38:18 +0800 (GMT+08:00)
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
.
- Prev by Date: RE: Need to extract only the function name no brackets reqd.
- Next by Date: scalar %hash
- Previous by thread: RE: Need to extract only the function name no brackets reqd.
- Next by thread: scalar %hash
- Index(es):