in reply to Re: splitting the scalar variables in an arrayin thread splitting the scalar variables in an array
my @dd; push @dd, split "\n", $_ for @TotalHosts; [download]
No need for push and for:
Alexander