in reply to Re: Selecting DB
in thread Selecting DB

this is what i get

ARRAY(0x56295a1b7458) ARRAY(0x56295a2c1878)

when i try this

my @TotalEmails = (@$user1, @$user2);

Replies are listed 'Best First'.
Re^3: Selecting DB
by Corion (Patriarch) on Jul 08, 2023 at 13:24 UTC

      Thanks it worked!

      it worked, but am getting emails like this

      test@test.com test2@test2.com

      no comma, coz i wanted to join emails with comma

        If you want all the emails comma (and possibly comma + newline) separated, avoid the foreach loop, and simply concatenate the results:
        my $rez = join(",\n", @$user1, @$user2); # Remove the \n if you want + just CSV

                        "These opinions are my own, though for a small fee they be yours too."