| 1 | # test merging of sub calls from eval fids | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 64 | ▶ | sub foo { print "foo\n" } | ||||||||||||
|
Subroutine
foo: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | |||||||||||||||
| 5 | 16 | my $code = 'foo()'; | |||||||||||||
| 6 | |||||||||||||||
| 7 | # call once from particular line | ||||||||||||||
| 8 | 16 | eval $code; | |||||||||||||
| 9 | |||||||||||||||
| 10 | # call twice from the same line | ||||||||||||||
| 11 | 16 | ▶ | eval $code or die $@; eval $code or die $@; | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 12 | |||||||||||||||
| 13 | # once from an eval inside an eval | ||||||||||||||
| 14 | 16 | eval "eval q{$code}"; | |||||||||||||