programming:general:phpvspythonvsperl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
programming:general:phpvspythonvsperl [2008/02/05 16:39] – crustymonkey | programming:general:phpvspythonvsperl [2008/04/14 13:55] (current) – crustymonkey | ||
---|---|---|---|
Line 367: | Line 367: | ||
===== Just For Fun... ===== | ===== Just For Fun... ===== | ||
...one of my co-workers whipped up this C code which uses '' | ...one of my co-workers whipped up this C code which uses '' | ||
+ | |||
Line 415: | Line 416: | ||
counter++; | counter++; | ||
break; | break; | ||
- | } | ||
- | } | ||
- | } | ||
- | |||
- | if (!(f = fopen(logfile, | ||
- | |||
- | while ((s = fgets(buf, sizeof(buf), | ||
- | for (i = 0; pat[i]; i++) { | ||
- | match = pcre_exec(re[i], | ||
- | 0, 0, ovec, 30); | ||
- | if (match > 0) { | ||
- | counter++; | ||
} | } | ||
} | } |
programming/general/phpvspythonvsperl.1202229556.txt.gz · Last modified: 2008/02/05 16:39 by crustymonkey