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 ]

schwern (1528)

  (email not shown publicly)
AOL IM: MichaelSchwern (Add Buddy, Send Message)

Schwern can destroy CPAN at his whim.

Journal of schwern (1528)

Friday January 18, 2008
12:01 PM

C For Perl Programmers?

[ #35424 ]

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"?


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.
  • 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