PPI::Normal has the intention, in the long run, of normalizing Perl in such a way that functionally equivalent code will present the same DOM tree.Okay...maybe I'm missing something, but isn't that nigh impossible? Consider these two very simple functions:
Both do the exact same thing, albeit in different ways. I'd be interested to see some sort of automated solution that reduces both to the same thing at any level.sub alpha { foreach(1..10) { print; } } sub beta { for(my $i=10; $i>=1; $i--) { print 11 - $i; } }
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
In reply to Re^3: Test::Code
by thor
in thread Test::Code
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |