in reply to Re^2: slurping styles
in thread slurping styles

I'd think that do block creates an anonymous lexical variable to hold the last value, and its content is being copies to the caller.

Try to measure the memory for returning something like [ <$handle> ], if my theory holds it won't use twice as much memory then because only the array reference is copied.