There is no hard definition for pragma. The closest to something official is in perlpragma .
- Usually they change the language or behavior of the parser.
- Their effect is usually lexically limited.
I personally think that these are requirements (and it seems that perlpragma too), but the main modules vars and subs are documented as pragmas, although their effect is not lexically limited.
base and lib don't match one of the criteria. What they do provides information to "Perl itself." I think it also qualifies as a pragma.
I believe my module use syntax qw( loop ); is pragmatic. (Shameless plugin!)
ikegami
source share