line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Project::Easy::Helper; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use Class::Easy; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub console { |
6
|
|
|
|
|
|
|
|
7
|
0
|
|
|
0
|
0
|
|
my @params = @ARGV; |
8
|
0
|
0
|
|
|
|
|
@params = @_ |
9
|
|
|
|
|
|
|
if scalar @_; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my ($package, $libs) = &_script_wrapper(); # Project name and "libs" path |
12
|
|
|
|
|
|
|
|
13
|
0
|
0
|
|
|
|
|
unless (try_to_use ('Devel::REPL')) { |
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
|
|
|
|
|
|
|
1; |