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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
A few disclaimers are necessary there... (Score:2)
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.
I know you're hinting at it with your definition of "parse" caveat there, but I think it deserves a better
Re:A few disclaimers are necessary there... (Score:1)
So let's not depend on PPI to tell if it got it wrong.
If you're doing manual refactoring, do you have tests to back up your transformation? If you don't, you're doing it wrong. Same with using a PPI backed refactoring tool.
Re:A few disclaimers are necessary there... (Score:1)
Re:A few disclaimers are necessary there... (Score:2)
I'm only negative to the point that the hype needs to be spin-corrected.
When Adam presents a fair and balanced description of PPI, I've been quiet. But when he presents an offsetting view, I present a counter-offsetting view.
It's about awareness. Not everyone knows why only perl can truly parse Perl, so they see PPI and get big googly eyes, when in fact it's not what it advertises itself to be, until you read all the fine print. When Adam
Re:A few disclaimers are necessary there... (Score:1)
This is no Perl.
(But more on that at the OSCON talk)
Re:A few disclaimers are necessary there... (Score:1)
And since there _is_ no language definition by which to define Perl, we simply say that "What perl parsers is what Perl is".
What is the definition of sub'new {}?
It's sub main::new {}. Is that a bug? It can't possibly be, because Perl is what perl parses.
If you look beyond the issue of whether PPI "parses" Perl correctly, you'll see that "there is no spoon".
There is no Pe
Re:A few disclaimers are necessary there... (Score:1)
>... 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 creat
Congratulations (Score:1)
sky
Three Cheers (Score:1)
Bill
# I had a sig when sigs were cool
use Sig;