11 Nov 2020 18:48:39 UTC
- Distribution: Acme-Be-Modern
- Module version: 0.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (0)
- Testers (149 / 0 / 0)
- KwaliteeBus factor: 1
- 100.00% Coverage
- License: gpl_3
- Activity24 month
- Download (19.19KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSLU Søren Lundand 1 contributors
- SÃ¸ren Lund
- LICENSE AND COPYRIGHT
Acme::Be::Modern - enables your script to "be modern"
This is a thin (and stupid) wrapper (actually a source filter) around Modern::Perl. It makes it possible to write 'be modern' instead of 'use Modern::Perl' - like this:
use Acme::Be::Modern; be modern; # all lowercase is actually postmodern :-/ ...
The source filter (defined in the Acme::Be::Modern::filter sub is simply a naive search-and-replace. Don't use this in any real code.
The implementation is a slight variation of the example in perlfilter. It's implemented using two functions:
This will be called after Acme::Be::Modern has been loaded. Simply calls filter_add() with a blessed reference. Now the filter is activated.
The actual filter. Will receive source lines by calling filter_read(). Any occurrence (and I mean any) of 'be modern' will be replace with 'use Modern::Perl'.
<slu at cpan.org>
Yes! This is buggy. It's a source filter, and it's really stupid. Any text in your source matching 'be modern' will be replaced with 'use Modern::Perl'.
Please report any bugs or feature requests to
bug-acme-be-modern at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-Be-Modern. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
Copyright 2011 Søren Lund.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
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. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Module Install Instructions
To install Acme::Be::Modern, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Acme::Be::Modern
For more information on module installation, please visit the detailed CPAN module installation guide.