Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why Perl is better than Python

Name: Anonymous 2012-06-02 13:53


typo = 0;
while (typo < 10): # timeout
  typ0 = typo + 1


Compared to:


use strict;
my $typo = 0;
while ($typo < 10) {
  $typ0 = $typo + 1 # will abort with error
}

Name: Anonymous 2012-06-03 1:40

>>3
>>4
IMO "use strict;" should be the default, and you should have to actively decline the use of strict. More people would use strict that way.

All good perl programs start with "use strict;".

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List