Slash Boxes
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

use Perl Log In

Log In

[ Create a new account ]

Abigail (26)

  (email not shown publicly)

Journal of Abigail (26)

Monday April 14, 2003
05:46 AM

C is not Perl.

[ #11633 ]
Today I was writing a quick C program. I started off with the lines:

    # use <stdlib.h>
    # use <stdio.h>

and I didn't notice it until the compiler complained.

(Darn, why isn't <PRE> allowed? That would make it a lot easier to show code.)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I recently spent some time staring at the following C code and wondering why it was giving a parse error:
    if (p) { p++ } /* Error 1 */

    But worse still was the following (simplified) awk program that returned 0 for the number of counted words:

    awk '{$c += NF} END{print $c}' file   # Error 2


    1. Missing statement terminator. 2. Should be c instead of $c.

  • It's smarter <pre> .


    -- Robin Berjon []