Yes, splitting the 'chunk' is a good solution! However, since you've noticed the chunk lacks newlines, change:
my @values = split('\n', $chunk);to
my @values = split /\s+/, $chunk;
In reply to Re^3: Repeating the same command in different portions of input
by Kenosis
in thread Repeating the same command in different portions of input
by albascura
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |