Aion-Run
view release on metacpan or search on metacpan
}
} @{$self->operands};
}
1;
```
```perl
use Aion::Format qw/trappout/;
use lib "lib";
use Scripts::MyScript;
trappout { Scripts::MyScript->new_from_args([qw/-a 1 -a 2 -a 3 +/])->calculate_sum } # => Result: 6\n
trappout { Scripts::MyScript->new_from_args([qw/--operand=4 * --operand=2/])->calculate_sum } # => Result: 8\n
```
# DESCRIPTION
Ð Ð¾Ð»Ñ `Aion::Run` ÑеализÑÐµÑ Ð°ÑÐ¿ÐµÐºÑ `arg` Ð´Ð»Ñ ÑÑÑановки ÑÐ¸Ñ Ð¸Ð· паÑамеÑÑов командной ÑÑÑоки.
lib/Aion/Run.md view on Meta::CPAN
}
} @{$self->operands};
}
1;
```
```perl
use Aion::Format qw/trappout/;
use lib "lib";
use Scripts::MyScript;
trappout { Scripts::MyScript->new_from_args([qw/-a 1 -a 2 -a 3 +/])->calculate_sum } # => Result: 6\n
trappout { Scripts::MyScript->new_from_args([qw/--operand=4 * --operand=2/])->calculate_sum } # => Result: 8\n
```
# DESCRIPTION
Ð Ð¾Ð»Ñ `Aion::Run` ÑеализÑÐµÑ Ð°ÑÐ¿ÐµÐºÑ `arg` Ð´Ð»Ñ ÑÑÑановки ÑÐ¸Ñ Ð¸Ð· паÑамеÑÑов командной ÑÑÑоки.
lib/Aion/Run.pm view on Meta::CPAN
}
} @{$self->operands};
}
1;
use Aion::Format qw/trappout/;
use lib "lib";
use Scripts::MyScript;
trappout { Scripts::MyScript->new_from_args([qw/-a 1 -a 2 -a 3 +/])->calculate_sum } # => Result: 6\n
trappout { Scripts::MyScript->new_from_args([qw/--operand=4 * --operand=2/])->calculate_sum } # => Result: 8\n
=head1 DESCRIPTION
The C<Aion::Run> role implements the C<arg> aspect for installing features from command line parameters.
=over
t/aion/run.t view on Meta::CPAN
#>> }
#>> } @{$self->operands};
#>> }
#>>
#>> 1;
#@< EOF
#
subtest 'SYNOPSIS' => sub {
use Aion::Format qw/trappout/;
use lib "lib";
use Scripts::MyScript;
local ($::_g0 = do {trappout { Scripts::MyScript->new_from_args([qw/-a 1 -a 2 -a 3 +/])->calculate_sum }}, $::_e0 = "Result: 6\n"); ::ok $::_g0 eq $::_e0, 'trappout { Scripts::MyScript->new_from_args([qw/-a 1 -a 2 -a 3 +/])->calculate_sum } # => Resu...
local ($::_g0 = do {trappout { Scripts::MyScript->new_from_args([qw/--operand=4 * --operand=2/])->calculate_sum }}, $::_e0 = "Result: 8\n"); ::ok $::_g0 eq $::_e0, 'trappout { Scripts::MyScript->new_from_args([qw/--operand=4 * --operand=2/])->calcula...
#
# # DESCRIPTION
#
# Ð Ð¾Ð»Ñ `Aion::Run` ÑеализÑÐµÑ Ð°ÑÐ¿ÐµÐºÑ `arg` Ð´Ð»Ñ ÑÑÑановки ÑÐ¸Ñ Ð¸Ð· паÑамеÑÑов командной ÑÑÑоки.
#
( run in 0.382 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )