in reply to Reference to an array

See perlman:perlref.
# if $body is a ref to an array @deRefArray = @{$body};

Have a nice day
All decision is left to your taste