Acme::PerlTidy - Clean code every time


Acme-PerlTidy documentation Contained in the Acme-PerlTidy distribution.

Index


Code Index:

NAME

Top

Acme::PerlTidy - Clean code every time

SYNOPSIS

Top

    use Acme::PerlTidy;

    # your code here.




DESCRIPTION

Top

Acme::PerlTidy cleans up your code every time you run it.

THE AUTHOR

Top

Yung-chung Lin (a.k.a. xern) <xern@cpan.org>

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

SEE ALSO

Top

Perl::Tidy


Acme-PerlTidy documentation Contained in the Acme-PerlTidy distribution.

package Acme::PerlTidy;

use strict;
use Perl::Tidy;

our $VERSION = '0.02';

open 0 or print "Can't open '$0'\n" and exit;
my $src = join'', <0>;
my $dest;

Perl::Tidy::perltidy(
		     source      => \$src,
		     destination => $0,
		     );
#print $dest;


1;
__END__