Fayland 林 > Acme-PlayCode-0.12 > Acme::PlayCode::Plugin::NumberPlus

Download:
Acme-PlayCode-0.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.11   Source  

NAME ^

Acme::PlayCode::Plugin::NumberPlus - Play code with plus number

SYNOPSIS ^

    use Acme::PlayCode;
    
    my $app = new Acme::PlayCode;
    
    $app->load_plugin('NumberPlus');
    
    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

DESCRIPTION ^

    my $a = 1 + 2;

becomes

    my $a = 3; # 1 + 2

SEE ALSO ^

Acme::PlayCode, Moose, PPI, MooseX::Object::Pluggable

AUTHOR ^

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE ^

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.

syntax highlighting: