protoc-gen-perl-gpd-add-pragma - protoc plugin demonstrating insertion points
protoc --perl-gpd_out=<mapping options>:<output path> --perl-gpd-add-pragma_out=package=<Perl package>,pragma=Sub.StrictDecl:<output path> message.proto
This protoc plugin is mostly a demonstration of insertion points, but can also be used to add additional pragmas as the top of the Perl module generated by protoc.
protoc
To see how insertion points can be used, check the source code of Google::ProtocolBuffers::Dynamic::AddPragma.
To install Google::ProtocolBuffers::Dynamic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::ProtocolBuffers::Dynamic
CPAN shell
perl -MCPAN -e shell install Google::ProtocolBuffers::Dynamic
For more information on module installation, please visit the detailed CPAN module installation guide.