NAME

Simple::Filter::Macro - Perl extension for creating macro modules that are expanding use declarations inline in Perl code.

SYNOPSIS

use Simple::Filter::Macro;

DESCRIPTION

Expand use pragma declarations to one use pragma declaration.

TO-DO

Improvement of the documentation.

MOTIVATION

I was looking for a module that would allow me to merge a number of use pragma declarations in the module and replace them with a single use pragma declaration. The module Filter::Macro that I found contains the right approaches for this, but is not executable under Perl v5.30 how I found out. After analysing the source code, I decided to create a new module based on the aforementioned approaches. The problem in the source code As I figured out is the use of the Perl command quotemeta. Since Perl v5.16 the use of quotemeta is obsolet as I suppose. The first attempts with basic changes in the source code were not without errors. In the meantime, the Perl code works as expected. The first two methods of this module are the result of my efforts.

EXPORT

None

SEE ALSO

Filter::Simple::Compile

Filter::Macro

CREDITS

Special thanks go to Audrey Tang, who wrote the Filter::Macro module, which contains the crucial approaches to implementing the present module and its methods.

AUTHOR

Dr. Peter Netz, <deathlok@>

COPYRIGHT AND LICENSE

Copyright (C) 2022 by Dr. Peter Netz

This library is free software; you can redistribute it and/or modify it under the same terms of The MIT License. For more details, see the full text of the license in the attached file LICENSE in the main module folder. This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.