4 ms·
I didn't have to do anything to get it. You had to use -c; how often do you see Python programmers do so? With that said, strict mode should be the default fo
by chromatic 15y ago
I didn't have to do anything to get it.
You had to use -c; how often do you see Python programmers do so?
With that said, strict mode should be the default for Perl 5 programs. Having to know the magic incantation to ask the compiler to help you is a barrier to novices.
- btilly 15y agoFYI -c is just the Python equivalent of -e in Perl.
- deleted 15y ago[deleted]
- tomku 15y agoThe -c flag doesn't have anything to do with that behavior, it's just how you pass a one-liner as a command line argument. From the usage output: -c cmd : program passed in as string (terminates option list) Edit: fixed formatting.
- chromatic 15y agoYeah, I ran the wrong example code before I posted. Sorry for the noise.