my @dd; push @dd, split "\n", $_ for @TotalHosts;
No need for push and for:
my @dd=map { split "\n" } @TotalHosts;Alexander
In reply to Re^2: splitting the scalar variables in an array
by afoken
in thread splitting the scalar variables in an array
by sunil9009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |