You could try something like
my(@all, $cur); while (<DATA>) { if ($_ =~ /\ADELIMITING_TEXT\Z/) { push @all, $cur; $cur = ""; } else { $cur .= $_; } } push @all, $cur;
The output is in @all then.
In reply to Re: split based upon string
by ambrus
in thread split based upon string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |