sub get_data { ...; return undef; # undef in scalar context and a one-item list containing undef in list context }