| 1 | package Project::Easy::Helper; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 6 | ▶ | use Class::Easy; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | |||||||||||||||
| 5 | 0 | ▶ | sub console { | ||||||||||||
|
Subroutine
console: not called CC=3 SCAR=21.6
Pod
undocumented
| |||||||||||||||
| 6 | |||||||||||||||
| 7 | 4 | ▶ | my @params = @ARGV; | ||||||||||||
|
Subroutine
console: called CC=3 SCAR=21.6
Pod
undocumented
| |||||||||||||||
| 8 | 0 | ▶ | @params = @_ | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 9 | if scalar @_; | ||||||||||||||
| 10 | |||||||||||||||
| 11 | 0 | my ($package, $libs) = &_script_wrapper(); # Project name and "libs" path | |||||||||||||
| 12 | |||||||||||||||
| 13 | 0 | ▶ | unless (try_to_use ('Devel::REPL')) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 14 | 0 | die "Devel::REPL required for interactive console"; | |||||||||||||
| 15 | } | ||||||||||||||
| 16 | |||||||||||||||
| 17 | 0 | my $repl = Devel::REPL->new; | |||||||||||||
| 18 | 0 | $repl->load_plugin('LexEnv'); | |||||||||||||
| 19 | 0 | $repl->load_plugin('History'); | |||||||||||||
| 20 | # $repl->load_plugin('MultiLine::PPI'); | ||||||||||||||
| 21 | |||||||||||||||
| 22 | 0 | $repl->lexical_environment->do(<<'CODEZ'); | |||||||||||||
| 23 | use Class::Easy; | ||||||||||||||
| 24 | use IO::Easy; | ||||||||||||||
| 25 | CODEZ | ||||||||||||||
| 26 | |||||||||||||||
| 27 | 0 | $repl->run; | |||||||||||||
| 28 | |||||||||||||||
| 29 | } | ||||||||||||||
| 30 | |||||||||||||||
| 31 | 6 | 1; | |||||||||||||