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.
Thanks (Score:1)
An anecdote: Perl parses "-t" aggressively. Consider the following code:
3-t(); # syntax error
3-test(); # Undefined subroutine &main::test
PPI doesn't treat the first case the same way Perl does, but it's a syntax error so does it really matter?
Re:Thanks (Score:1)
Perl's intepretation changes over time (each version has slight differences here and there). Witness how selfgol only works on a few particular versions of Perl.
PPI doesn't try to maintain bug for bug compatibility, because it simply can't. It has to be somewhat compatible with all versions.
So the general direction is that BOTH of $Perl{perl} and $Perl{PPI} trends towards $Perl{Larry}. On the way, $Perl{PPI} also tries to get as close as it can to $Perl{perl} but without compromising its compatibility to $Perl{Larry}.
In the above case, it might matter enough to make it worth it, if not in that case, then maybe in a few other cases.
It depends on if it is considered a bug or not, one could thing of the above as
3 -t scalar()
It is nonsensical, but tentatively legal in some cases.
If in doubt, I'm inclined to just leave things as they are until something comes up that matters.
Reply to This
Parent
Re: (Score:1)
Re: (Score:1)