Acme::Minify - Minify that long Perl code
version 0.07
Acme::Minify minifies Perl code.
use Acme::Minify qw(minify); my $short_code = minify( $long_code );
This packages removes most of the unnecessary characters from Perl code.
Comments are removed
POD is removed
Quoted strings (" ' `) and regexes are preserved
\t and \n are converted in whitespaces
__DATA__ and __END__ are preserved
Spaces are removed if it doesn't affect syntax correcteness
The module exports the subroutine 'minify' on request.
Minify the given source code
Alessandro Ghedini <alexbio@cpan.org>
This module is highly unstable and his behaviour could be unpredictable in some cases as it has not been tested very deeply. Just to make things obvious, it is not intended for production code.
Copyright 2010 Alessandro Ghedini.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Acme::Minify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Minify
CPAN shell
perl -MCPAN -e shell install Acme::Minify
For more information on module installation, please visit the detailed CPAN module installation guide.