You can split the string on newlines into an array, and then iterate through it in a foreach loop.
my @lines = split /\n/, $str; foreach my $line (@lines) { ... }
In reply to Re: Parsing multiline string line by line
by olus
in thread Parsing multiline string line by line
by flamey
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |