This code is not colored properly in the Open Perl IDE editor:
# comment line should be green (but isn't)
Adding a line shows that the editor is assuming that the << syntax is introducing a "here" document, but
in fact the << operator has more than one meaning:
# comment line is green
I notice that vim's syntax coloring gets it closer to right. It seems to distinguish between a left shift and a
here document based on whether the token after "<<" starts with a digit. Perl seems to allow digits to
start here document EOF markers, though, so the real parsing is more complex.