example/eval.pl

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 6 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Devel/Trepan/IO/InOutBase.pm ↑ Summary example/nexting.pl »
1 0 $var = '
2 # This line is not a comment of the above $var assignment
3 $x = 2;
4 $y = 3;
5 $z = 4';
6 0 eval $var;
7 0 $eval_sub='
8 sub five() {
9 my @args = @_;
10 print "ho\n";
11 5;
12 }';
13 0 eval $eval_sub;
14 0 $y = five();
15 0 print "$y\n";
« blib/lib/Devel/Trepan/IO/InOutBase.pm ↑ Summary example/nexting.pl »