Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • So... since
    $counter++;
    is just shorthand for
    $counter += 1;
    and that is just shorthand for
    $counter = $counter + 1;
    I guess only having the last one would streamline the thought process in a brilliant way.
    • Hm...

      Python 1.5.2 (#0, Sep 17 2002, 20:29:27)  [GCC 2.95.4 20011002 (Debian prerelease)] on linux2
      Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
      >>> counter = 1
      >>> counter += 1
        File "<stdin>", line 1
          counter += 1
                   ^
      SyntaxError: invalid syntax
      >>> counter++
        File "<stdin>", line 1
          counter++
                  ^
      SyntaxError: invalid syntax

      (Later ver