Allison Randal <[EMAIL PROTECTED]> writes: > That said, even though there isn't a good general way to allow parser > object reuse in all cases, it's possible to do it in particular > cases. Pod::Simple::HTMLBatch is an example of this. Because it's > dealing with a whole set of POD files, it knows when it's done with one > file and ready to go onto the next one, so it just reinitializes certain > information when it starts on the next file. I can see potential for a > 'reinit' method in Pod::Simple that blows away the state information > while keeping the option flags intact. Pod::Simple wouldn't call it for > you, but it could at least allow you the option of calling it and > provide an easy interface to do it. I'll have to think about that some > more. Russ, would that help the modules that use Pod::Man, or is it > really no advantage over creating a new object for each file?
I don't think there's really much advantage beyond supporting code that assumed one could reuse an object, but I'm happy to add in a call to reinit so that the old code would continue to work. -- Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>
