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 :)


In reply to Re: C tutorial for Perl programmers? (hard lint strict warnings bondage perlxspp) by Anonymous Monk
in thread C tutorial for Perl programmers? by QuarterToWhen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.