in reply to Re^3: Pulling data out of { }
in thread Pulling data out of { }
The sub is only eval'ed once per new.
I bet it (->parse) doesn't run slowly. The time is probably spent parsing the grammar, compiling it into Perl code, and compiling the Perl code (->new). Parse::RecDescent shouldn't be used directly in production code. Modules created by Parse::RecDescent's Precompile method should be used instead.
There is no benefit to using require here. I don't like to use use at spots other than at the top of the package, and I wanted to group the testing code together.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Pulling data out of { }
by BrowserUk (Patriarch) on Jan 17, 2006 at 05:47 UTC | |
by ikegami (Patriarch) on Jan 17, 2006 at 06:08 UTC | |
by BrowserUk (Patriarch) on Jan 17, 2006 at 06:17 UTC |