@{$lists{$key}}

@{ } will turn an array referrence into an array
%{ } will turn a hash ref into a hash
${ } will turn a scalar ref into a scalar
ref( ) will return the type of refference "ARRAY" OR "HASH"
 OR CLASS_NAME (if object) OR SCALAR or NOTHING if not a ref