An instructive (hopefully) C extension for Perl written in plain C + perl API, but without using XS