This is a small part of the perl documentation. Perl, yea that’s great but on the other hand you can write there terrible to maintain programs (see perlgolf). What’s the perl syntax isn’t obvious even for the perl interpreter itself, see below.
Note also that the interpolation code needs to make a decision on where the interpolated scalar ends. For instance, whether "a $b -> {c}" really means:
"a " . $b . " -> {c}";
or:
"a " . $b -> {c};
Most of the time, the longest possible text that does not include spaces between components and which contains matching braces or brackets. because the outcome may be determined by voting based on heuristic estimators, the result is not strictly predictable. Fortunately, it’s usually correct for ambiguous cases.
Source: http://perldoc.perl.org/perlop.html
The part that I love most in the above sentence is the word “usually“.
Related posts:
- New Perl 6 Mess of Code Some time ago there was announced that the Perl 6 ...
- What is a Computer Programmer Wow, that is the kind of information I hit upon...
- Django has Pony, Perl has Camelia Yea, I know that Django has a pony … but,...
- Most Perl Users Don’t Use Windows For me this is obvious. Perl programmers are usually using...













0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.