in reply to Re^4: joining string content
in thread joining string content

replace

my @raw_params = split /\s+/, $phone; my @quoted_params = map { qq{"$_"} } @raw_params; my $quoted_params_string = join ", ", @quoted_params; my @recipients = ($quoted_params_string);

with

my @recipients = $phone =~ /[+\d]+/g;

Replies are listed 'Best First'.
Re^6: joining string content
by joyfedl (Acolyte) on Jun 24, 2025 at 15:14 UTC

    wow it worked, thanks so much so so so much