The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Acme::Minify - Minify that long Perl code

VERSION

Version 0.03

SYNOPSIS

Acme::Minify minifies Perl code.

    use Acme::Minify qw(minify);

    my $short_code = minify( $long_code );

DESCRIPTION

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

EXPORT

The module exports the subroutine 'minify' on request.

SUBROUTINES

minify( $long_code )

Minify the given source code

AUTHOR

Alessandro Ghedini, <alexbio at cpan.org>

BUGS

Please report any bugs or feature requests to bug-acme-minify at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-Minify. 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::Minify

You can also look for information at:

ACKNOWLEDGEMENTS

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.

LICENSE AND COPYRIGHT

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.