in reply to Returning string and numerical data types from subroutines

Two common mechanisms: