do_something_to(\$this_var, 'No return required'); sub do_something_to { if (! $#_) { $$_[0] = 'x'; return; } return 'x'; }