Perl Monk, Perl Meditation | |
PerlMonks |
Python gave me a colonic (solved - brainfart)by bobn (Chaplain) |
on Aug 24, 2020 at 22:38 UTC ( [id://11121059]=perlquestion: print w/replies, xml ) | Need Help?? |
bobn has asked for the wisdom of the Perl Monks concerning the following question: UPDATE: else: is a label. my bad. So I'm learning Python. I always disdained it because no curlies, but once you start doing stuff in it you get used to it. Sort of But I still use Perl when I want to cobble something up quick. Using multiple languages has it's issues, though. I get confused. Here's one case where Perl seems to be confused, too, at 5.26.1. I installed perlbrew and it still happens at 5.032000 and 5.033001
produces
No warnings, no syntax errors, nothing except the (seemingly) impossible behavior Removing the colon from the else statement restores correct behavior. gvim didn't catch it either - it's syntax highlighting is as if this was perfectly valid. Is this a bug, or am i being persnickety?
--Bob All code given here is UNTESTED unless otherwise stated.
Back to
Seekers of Perl Wisdom
|
|