http://www.perlmonks.org?node_id=593474


in reply to Re^3: returning tied array
in thread returning tied array

You can only return scalars and lists and (nothing) from subroutines. You can't return arrays or hashes directly, only as lists or references.