in reply to Re^2: Import pragmas like strict and warnings into callers lexical scope
in thread Import pragmas like strict and warnings into callers lexical scope

It's special to $^H and %^H, but %^H was created to give you access to that behaviour
$^H{'mypragma'} = ...;
$^H{'mypragma::G'} = ...;