in reply to writing a pragma

Sure. You can check the source code of strict at (Meta-)CPAN: https://metacpan.org/source/RJBS/perl-5.18.2/lib/strict.pm.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: writing a pragma
by salva (Canon) on Apr 25, 2014 at 15:42 UTC
    Well, strict is not a good example as it is just a thin wrapper to enable/disable functionality that is actually implemented on the C side of the perl interpreter.

    How to write pragmas is documented in perlpragma. The entry for %^H in perlvar contains also some bits of information.

      thanks for the answer. helped a lot. is there a way to write a module to work like strict. so that does something at compile time?
        is there a way to write a module to work like strict. so that does something at compile time?