Chapter 41. Compiler Backends

To compile a Perl program with the C backend, use:

perlcc -o foo

To produce a cross-reference report of the line numbers at which all variables, subroutines, and formats are defined and used, use:

perl -MO=Xref,-d

To see what Perl compiles your program into, use:

perl -MO=Deparse

This shows exactly the precedence of Perl operators:

perl -MO=Deparse,-p

The compiler backends are experimental.

perlcc, perlcompile.

Get Perl Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.