http://qs321.pair.com?node_id=384624


in reply to Split problem using limit

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.


___________
Eric Hodges