in reply to Re^4: writing a pragma
in thread writing a pragma

In Perl it is easy to do things at compile time. You have BEGIN for that.

A different mater is changing how the program is compiled. perl provides some hooks for doing it, but AFAIK, it must be done at the C level and requires a pretty good knowledge of the internals. See perlguts.