Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • 100% "Round Trip" safety

    ... provided you don't change the document in any way, like perhaps "strip comments" or anything that is not the NULL transformation.

    If you do any transformation, you will not know that you've misparsed. You'll simply get the wrong result, and you will damage code.

    Although it took a new definition of "parse", perl is now no longer the only thing that can parse Perl.

    I know you're hinting at it with your definition of "parse" caveat there, but I think it deserves a better

    --
    • Randal L. Schwartz
    • Stonehenge
    • >> 100% "Round Trip" safety

      >... provided you don't change the document in any >way, like perhaps "strip comments" or anything that >is not the NULL transformation.

      And BTW, so I don't have to explain this again, the definition of "Round Trip" is that if you don't change a piece of code, it comes out the same as it went in, the entire point is that you don't change the document.

      PPI can do this, unlike every other attempt at a perl-based "parser" that I've seen.

      B:: is more of an attempt to create a bytecode serializer that a Perl parser.