in reply to Re^7: I wrote an expression parser for PPI
in thread I wrote an expression parser for PPI
I had a problem with this by the way, and realized why Perl don't cache its byte code. I wanted to do a cache of compiled code, with key from the hash of the file content. But it just seems too fragile. You would need a cache of used files (so they could be loaded) and everything would need a recompile if a file further down in the stack was changed. I put on the todo to compile a program with dependencies to a standalone code file, instead.
Edit: If you tell me that Try::Tiny works with require, then I am totally wrong. :-) That should only work with use right? (I had to read the code, there was some claim that it was slow so I never Try:ed.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: I wrote an expression parser for PPI
by LanX (Saint) on Jan 11, 2026 at 13:58 UTC | |
by BerntB (Deacon) on Jan 12, 2026 at 10:08 UTC |