File: test61-submerge.p

package info (click to toggle)
libdevel-nytprof-perl 6.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,888 kB
  • sloc: perl: 5,497; javascript: 4,033; ansic: 107; makefile: 27
file content (8 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
# test merging of sub info and sub callers
# which is applied to, e.g., anon subs inside evals

sub foo { print "foo @_\n" }

my $code = qq{ sub { foo() } $Devel::NYTProf::StrEvalTestPad};

eval($code)->(); eval($code)->(); eval($code)->();