in reply to Working with references to scalars

Regular brackets worked for me.

put_string_ref(\(get_string()));


Jason W.