in reply to using split on a file

You can try something like this: LOOP: while (<INFILE>) { next LOOP if /^%/; #process segment here } That'll process for any line that doesn't start with a %. Egg, YAPH-and-BOFH-wannabe

Replies are listed 'Best First'.
RE: Re: using split on a file
by Anonymous Monk on Feb 14, 2000 at 11:31 UTC
    D'oh! Sorry about the lack of formatting on that one. It should have read

    LOOP:  while (<INFILE>) {
        next LOOP if /^%/;
        #process segment here
    }
    

    Hope this helps, and that it shows up right this time.

    Egg, YAPH-and-BOFH-wannabe