Functions created by create_function() cannot return a value by reference.  The function below creates a function that can