Acme-Padre-PlayCode
view release on metacpan or search on metacpan
lib/Acme/Padre/PlayCode.pm view on Meta::CPAN
sub play {
my ( $self, $plugin ) = @_;
my $main = $self->main;
my $doc = $main->current->document;
return unless $doc;
my $src = $main->current->text;
my $code = $src ? $src : $doc->text_get;
return unless ( defined $code and length($code) );
require Acme::PlayCode;
my $playapp = new Acme::PlayCode;
$playapp->load_plugin( $plugin );
my $played = $playapp->play($code);
if ( $src ) {
my $editor = $main->current->editor;
$editor->ReplaceSelection( $played );
( run in 0.726 second using v1.01-cache-2.11-cpan-65fba6d93b7 )