On p5p I wind up saying "someone who knows C should..." a lot and "I'm not a C programmer, but...". It's healthy to have people on p5p who are native speakers of Perl to reign in the C and shell programmers when the internals start to leak into their Perl (see the ongoing "Infinity is not MAX_INT!" fun) but I'd like to be more useful with the actual coding. If nothing else then to not distract our overworked real C programmers from doing real work on perl with my silly ideas.
So where's the "C for Perl Programmers" book/tutorial/etc...? There's Simon Cozens' old "Embedding and Extending Perl" book, which is handy, and Advanced Perl Programming has a little bit of C in it, and perlguts. But where's the "explaining C insanity in terms of Perl insanity" book? Or even "C for Dynamic Programmers"?
Suggestions?
For what it is worth (Score:1)
For what it is worth, I have been diving into the perl/c goodness in the mod_perl innards as I hack away, so maybe I have something useful to say here. I am a mediocre C programmer (just don't use it that much when I can use Perl), but I know enough to read the C constructs without having to go to the reference book.
So first off, if you don't know C, go get a intro to C book or something like that to at least get an idea of the way functions/variables are typed, etc. Understand what a struct is (think ob