in reply to Working with references to scalars
You don't even need the parens that hv and apsyrtes used:
put_string_ref( \get_string() ); [download]