in reply to Re^9: Selecting DB
in thread Selecting DB

my $tostring = join ', ', map @$_, @$TotalEmails;

Too golfy ?

Replies are listed 'Best First'.
Re^11: Selecting DB
by hippo (Archbishop) on Jul 11, 2023 at 08:27 UTC

    For a novice, probably so. But it is a nice, concise solution (++). OTOH I might just reach for List::Flatten (or List::Flatten::Recursive if $TotalEmails were to be any deeper).

    use List::Flatten; my $tostring = join ',', flat @$TotalEmails;

    🦛