Filter::Simple::Compile - Drop-in replacement to Filter::Simple
Drop-in replacement for Filter::Simple:
package MyFilter; use Filter::Simple::Compile; FILTER { ... };
This way also works:
use Filter::Simple::Compile sub { ... };
This module lets you write Module::Compile extensions that are compatible with Filter::Simple's API.
Additionally, no Filter::Simple::Compile does the same thing as use Filter::Simple::Compile, except the meaning for use and no will be reversed for your filter:
no Filter::Simple::Compile
use Filter::Simple::Compile
use
no
package MyFilter; no Filter::Simple::Compile sub { ... } # "no MyFilter" begins filtering # "use MyFilter" terminates it
Audrey Tang <cpan@audreyt.org>
Copyright 2006 by Audrey Tang <cpan@audreyt.org>.
This software is released under the MIT license cited below. Additionally, when this software is distributed with Perl Kit, Version 5, you may also redistribute it and/or modify it under the same terms as Perl itself.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
To install Filter::Simple::Compile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Filter::Simple::Compile
CPAN shell
perl -MCPAN -e shell install Filter::Simple::Compile
For more information on module installation, please visit the detailed CPAN module installation guide.