3 ms·
perl cannot be parses at all; there are cases where you must run a program to find out whether x is an identifier or a [function] name. Nonsense. A very small
by chromatic 16y ago
perl cannot be parses at all; there are cases where you must run a program to find out whether x is an identifier or a [function] name.
Nonsense. A very small category of behavior exists where static parsing of Perl 5 cannot determine whether a given program is valid. That's all. It's possible to write a pathological program which has two valid and working parses, but I've never seen it and it's an intellectual game, not a trap waiting to snare an unwary programmer.
(I have no idea what "an identifier or a function name" means, as Perl uses sigils to distinguish between variables and function names.)
See http://www.modernperlbooks.com/mt/2009/08/on-parsing-perl-5.html http://www.modernperlbooks.com/mt/2009/08/on-parsing-perl-5.... for details.