in reply to (jeffa) 3Re: Returning data from wrapped sub
in thread Returning data from wrapped sub

Try it with:
$ref = sub {localtime(@_)};
You will very quickly find that your wrapper has changed rather dramatically what happens in scalar context.