>>>>> "QM" == Quantum Mechanic <[EMAIL PROTECTED]> writes:
QM> Can you reverse the string and use lookahead? QM> return split( m|(?=$sep)|, reverse ${$buf_ref} ) if QM> wantarray ; this is file slurping. would you want the lines in reverse order? if so you would use File::ReadBackwards :) you could fix that with another list reverse but that all will be too slow IMO. i have another solution i think which i will test later today. uri -- Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com --Perl Consulting, Stem Development, Systems Architecture, Design and Coding- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org