File: test61-submerge.p

package info (click to toggle)
libdevel-nytprof-perl 4.06-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,152 kB
  • sloc: perl: 4,451; ansic: 89; makefile: 19
file content (8 lines) | stat: -rw-r--r-- 206 bytes parent folder | download
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 = 'sub { foo() }';

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