rossta has asked for the wisdom of the Perl Monks concerning the following question:

http://search.cpan.org/author/DCONWAY/Parse-RecDescent-1.94/lib/Parse/RecDescent.pod#Autostubbing has
function_call: identifier '(' arg(s?) ')' identifier: /[a-z]\w*/i
as an example grammer, but
#! /usr/local/bin/perl -ws use Parse::RecDescent; my $parse = Parse::RecDescent->new(<<'EndGrammar'); function_call: identifier '(' arg(s) ')' identifier: /[a-z]\w*/i arg: 'arg' EndGrammar while (<DATA>) { print $parse->function_call($_); } __DATA__ a(1)
fails with

Use of uninitialized value in print at parse.pl line 18, 
<DATA> line 1.

Can anyone suggest what I'm doing wrong?

Replies are listed 'Best First'.
•Re: Does Parse::RecDescent support function calls?
by merlyn (Sage) on Jul 23, 2003 at 17:00 UTC