in reply to C tutorial for Perl programmers?

I don't know c-well, or perlxs well, but I've done a few short programs and equally short modules with lots of cargoculting :)

Teach them to leverage the hardest of the hard and available linting tools Is there anything like PPI or Perl::Critic for C? - Stack Overflow

Teach them similar idioms, stuff they can cargo-cult, http://rosettacode.org/wiki/C, C idioms in Perl, aww :) doesn't have c PLEAC - Programming Language Examples Alike Cookbook...

C Traps and Pitfalls/http://www.literateprogramming.com/ctraps.pdf

informative funny slideshow/presentation cartoon interview with c-programmer deep-c-and-c++ Deep C (and C++) Geektalk

and from the same guy a 2-3 day course on learning c (ITS GITHUB) cf - C Foundation course

also available at http://www.jaggersoft.com/c_course/index.html / http://www.jaggersoft.com/c_course_2/index.html

Extending and Embedding Perl (book has C tutorial)

I've not seen a book/tutorial that covers everything you're looking for, but these links may help: Re: Using a shared object in perl, Manning: Extending and Embedding Perl jenness_ch02.pdf, XSLoader, DynaLoader

http://search.cpan.org/dist/illguts/index.html

more

shotgun/linkdumpexampless

or even Inline::C, see Getting Started with Inline::C, Re: Inline::C with multiple *.c, Efficient bit-twiddling in Perl., In-place bitwise NOT?,

Also curious Re: How to use C Libraries in Perl Script?, ExtUtils::Depends - Easily build XS extensions that depend on XS extensions, InlineX::XS - Auto-convert Inline::C based modules to XS, InlineX::C2XS start with Inline::C instead?

Switch to Inline::C, Re: h2xs on Windows
Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.
Call a C function from Perl used from C
Getting Started with Inline::C
Calling a function form an external DLL with Inline::C on windows

Tips via Exploring Inline::C (Generating primes)

Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values. XS++ - bonding Perl and C++ with minimal pain

See also Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values. , Re: Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.,
and these things the replies reference
Module::Build::WithXSpp - XS++ enhanced flavour of Module::Build
XS++ - bonding Perl and C++ with minimal pain (YAPC::EU in Pisa)
Math::ThinPlateSpline
XSpp::Example

perlhacktips#Portability problems -Dgccansipedantic PERL_GCC_PEDANTIC "gcc -ansi -pedantic -Wall -Wextra"

Cyclone (programming language), Buffer overflow protection,, Read perlclib, use Safefree

Maybe you can find more stuff via parent/op of Re: How to teach perl to novice programer

food luck :)

  • Comment on Re: C tutorial for Perl programmers? (hard lint strict warnings bondage perlxspp)