Acme::MetaSyntactic::RefactorCode - Theme and refactor your code!


NAME

Acme::MetaSyntactic::RefactorCode - Theme and refactor your code!


VERSION

Version 0.05


SYNOPSIS

Acme::MetaSyntactic::RefactorCode helps you give signicant variable names to your code.

The default (loremipsum theme) way to use it is:

   perl -MAcme::MetaSyntactic::RefactorCode script.pl > loremipsumed.pl

Or the themed version:

   perl -MAcme::MetaSyntactic::RefactorCode script.pl -t theme > themed.pl

Take special care to choose a theme that has sufficient entries to refactor your code. Use this one-liner to get available themes:

   perl -MAcme::MetaSyntactic -e 'print join "\n",Acme::MetaSyntactic->themes'


ABSTRACT

Make your code special, using the theme of your choice available from the great Acme::MetaSyntactic by BooK.

import

This function is automatically called at import time, and uses the O::Deobfuscate manpage and the B::Deobfuscate::Dict::RefactorCode manpage to rewrite the code with the theme specified with the -t CLI option.


AUTHOR

Jerome Fenal, <jfenal@free.fr>


BUGS

AMSRC will explode if using a theme that has no sufficient entries for your code.

B::Deobfuscate seems also to have problems with big code chunks (tried it on the future 0.02 the Solaris::Disk::SVM manpage), some methods calls not being translated.

Please report any other bugs or feature requests to bug-acme-metasyntactic-refactorcode@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


ACKNOWLEDGEMENTS

Heavily (completely) based on the idea and the code of the Acme::Floral manpage by Joshua b. Jore.

This module could not have happened without the the Acme::MetaSyntactic manpage module by Philippe "BooK" Bruhat.

Many thanks to Adriano Ferreira who sent a patch to make AMSRC work under newer version of the B::Deobfuscate manpage. See RT at http://rt.cpan.org/Ticket/Display.html for full details.


COPYRIGHT & LICENSE

Copyright 2005 Jérôme Fenal, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.