While I think solving this in pure-perl is probably do-able, if you do want to drop to C, you could checkout Inline::C.
This allows you do to exactly what you want, embed C in your perl file and have it All Just Work.
(It does require a working C build environment where you run the script, and it will also write the .o/.so files generated by the compiler to a cache so that it only compiles as needed. This might create deployment issues.)
In reply to Re^3: In search of an efficient query abstractor
by jbert
in thread In search of an efficient query abstractor
by xaprb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |