App-sdif
view release on metacpan or search on metacpan
lib/App/cdif/Command/OSAscript.pm view on Meta::CPAN
package App::cdif::Command::OSAscript;
use parent "App::cdif::Command";
use v5.14;
use warnings;
use utf8;
use Carp;
use Data::Dumper;
sub new {
my($class, %opt) = @_;
my @command = qw(osascript);
if (my $lang = delete $opt{LANG}) {
push @command, "-l", $lang;
}
my $obj = $class->SUPER::new(%opt);
$obj->command("@command");
$obj;
}
sub exec {
my $obj = shift;
my $script = shift;
$obj->setstdin($script)->update->data;
}
1;
( run in 2.450 seconds using v1.01-cache-2.11-cpan-98e64b0badf )