I don't see why you are splitting at all. $_ is holding the value of that string so wouldn't my $spectext = $_; give you your desired results? BTW all your regex should be inside / / and your data should be __DATA__ not ----DATA----. The way it is your code throws a whole bunch of errors.
In reply to Re: Split problem using limit
by eric256
in thread Split problem using limit
by NovMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |