in reply to array and string split
Perhaps something like this:foreach my $line (@port) { my @PORTS = split('\n', $line); foreach my $str (@PORTS){ ... } } }
for my $str ( map { split /\n/ } @port ) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array and string split
by Anonymous Monk on Jan 27, 2015 at 13:09 UTC |