http://www.perlmonks.org?node_id=942013


in reply to Can you explain the result?

Sure. The result of your function is the value 1, and that's what you're passing to Dumper...

Now, if you called

print Dumper(\&func);
on the function reference, you'd get a slightly more interesting result:
$VAR1 = sub { "DUMMY" };
I guess my version of Dumper isn't up to decompiling subs - I'm guessing that's expected.

Mike