Inline::CPR

Inline::CPR is C Perl Run.
Download

Inline::CPR Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brian Ingerson
  • Publisher web site:
  • http://search.cpan.org/~ingy/CGI-Kwiki-0.18/lib/CGI/Kwiki/New.pm

Inline::CPR Tags


Inline::CPR Description

Inline::CPR is C Perl Run. Inline::CPR is C Perl Run. Embed Perl in C, ala InlineSYNOPSIS #!/usr/local/bin/cpr int main(void) { printf("Hello World, I'm running under Perl version %sn", CPR_eval("use Config; $Config{version}") ); return 0; }Is it C? Is it Perl? It's neither, it's both. It's CPR!CPR (C Perl Run) is a "new language" that looks like C. You don't need to compile it. You just run it, much like Perl. As an added bonus, you'll get access to the full internals of Perl via the CPR API.The idea is that you just put a CPR hashbang at the top of your C program and run it like a script. The CPR interpreter will run your C code under Perl.If your 'hash' doesn't 'bang', you can run your program like this: cpr synopsis.cpr Requirements: · Perl


Inline::CPR Related Software