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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can you explain the result?
by PerlOnTheWay (Monk) on Dec 06, 2011 at 13:24 UTC | |
by RMGir (Prior) on Dec 06, 2011 at 13:34 UTC | |
|
In Section
Seekers of Perl Wisdom