Re: grammar problems
[email protected] ("Sean O'Rourke") Fri, 25 Jun 2004 08:23:45 -0700
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <[email protected]> |
Jonas Wolf <[email protected]> writes: > ident_no_key : /[a-zA-Z\d]+/ > { > $return = ($item[1]=~/^(OR|AND)$/i) ? undef : new > ident_no_key(@item[1..$#item]); > } > > However, this gives me an error message: > > Can't use string ("ident_no_key") as a SCALAR ref while "strict refs" in > use at > (eval 17) line 1375. > > What am I doing wrong and how can I fix it? The grammar lives in its own package, so you need to use/require the "ident_no_key" class. /s