-
-
11 Nov 2020 18:48:39 UTC
- Distribution: Acme-Be-Modern
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (148 / 0 / 0)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: gpl_3
- Activity
24 month- Tools
- Download (19.19KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Søren Lund
- Dependencies
- Filter::Util::Call
- Modern::Perl
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Acme::Be::Modern - enables your script to "be modern"
VERSION
Version 0.04
SYNOPSIS
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 :-/ ...
WARNING
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.
IMPLEMENTATION
The implementation is a slight variation of the example in perlfilter. It's implemented using two functions:
import
This will be called after Acme::Be::Modern has been loaded. Simply calls filter_add() with a blessed reference. Now the filter is activated.
filter
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'.
AUTHOR
Søren Lund,
<slu at cpan.org>
BUGS
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.SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Acme::Be::Modern
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
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.
cpanm Acme::Be::Modern
perl -MCPAN -e shell install Acme::Be::Modern
For more information on module installation, please visit the detailed CPAN module installation guide.