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...
Mike
Now, if you called
on the function reference, you'd get a slightly more interesting result:print Dumper(\&func);
I guess my version of Dumper isn't up to decompiling subs - I'm guessing that's expected.$VAR1 = sub { "DUMMY" };
Mike
In Section
Seekers of Perl Wisdom