Re: Parse::RecDescent and modperl
[email protected] (Peter Sinnott)
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <[email protected]> |
Terrence Brannon wrote: > On Thursday, November 15, 2001, at 05:26 AM, Peter Sinnott wrote: > > > Hi all, > > I am trying to use Mail::IMAPClient::BodyStructure > > under modperl and I am running into some problems when preloading > > the module. Since BodyStructure uses Parse::RecDescent ( v1.80) > > I was wondering if there are any problems with using RecDescent > > under modperl? > > this I cannot answer After a bit of looking it seems the problem is with preloading body Mail::IMAPClient::BodyStructure and FileHandle. Preloading one or the other seems fine but both causes problems. I'm using debian stable with Parse::RecDescent 1.80 FileHandle v 2.0 Mail::IMAPClient::BodyStructure v 0.01 perl v 5.005 Could the problem be that the grammer is spicified using a here document? I seem to recall problems related to this with Inline::C ( I don't remember any mention of modperl ). Some of the demo scripts with RecDescent such asdemo_simpleXML.pl seem to have problems under modperl because of there use of data sections at the end of the file. > > > Also is it possible to dump the parser created by > > RecDescent > > using Data::Dumper and then eval it back at a latter date? > > A section of the manual entitled "Precompiling parsers" should provide > an adequate answer to this question. I include part of it below... type > perldoc Parse::RecDescent on the machine you are using Parse::RecDescent > on to read the full section > > Sorry about that,I should have checked the man page. The question was just an after thought. Precompiling the parser seems to half the time used in using it. Creates quite a large module,I'd hate to see what a large grammer would create.