Acme::Be::Modern - enables your script to "be modern"


Version 0.04


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'.


Søren Lund, <slu at>


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, or through the web interface at 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.

    perldoc Acme::Be::Modern

You can also look for information at:


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 <>.