in reply to Test for array or hash - ok, but what to do about it?

my $content_handle = ( ref( $content->{'A'} ) eq 'ARRAY' ) ? $content->{'A'}->[0] : $content->{'A'};

The cake is a lie.
The cake is a lie.
The cake is a lie.