Acme::PlayCode::Plugin::DoubleToSingle - Play code with Single and Double
use Acme::PlayCode; my $app = new Acme::PlayCode; $app->load_plugin('DoubleToSingle'); my $played_code = $app->play( $code ); # or my $played_code = $app->play( $filename ); # or $app->play( $filename, { rewrite_file => 1 } ); # override $filename with played code
my $a = "a"; my $b = "'b'"; my $c = qq~c~; my $d = qq~'d'~; my $e = q{e}; my $f = 'f'; if ( $a eq "a" ) { print "ok"; }
becomes
my $a = 'a'; my $b = q~'b'~; my $c = 'c'; my $d = qq~'d'~; my $e = q{e}; my $f = 'f'; if ( $a eq 'a' ) { print 'ok'; }
Acme::PlayCode, Moose, PPI, MooseX::Object::Pluggable
Fayland Lam, <fayland at gmail.com>
<fayland at gmail.com>
Copyright 2008 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::PlayCode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::PlayCode
CPAN shell
perl -MCPAN -e shell install Acme::PlayCode
For more information on module installation, please visit the detailed CPAN module installation guide.