in reply to Re: Re: Re: parsing an ASP file
in thread parsing an ASP file
well, your code looks surely good, but seems to be failing line count. on a simple ASP page of mine I get these results:
mine | yours | ||
HTM | 1 | HTM | 1 |
ASP | 31 | ASP | 1 |
HTM | 31 | HTM | 31 |
ASP | 44 | ASP | 31 |
HTM | 46 | HTM | 46 |
ASP | 50 | ASP | 46 |
HTM | 50 | HTM | 50 |
ASP | 55 | ASP | 50 |
HTM | 59 | HTM | 59 |
ASP | 73 | ASP | 59 |
HTM | 75 | HTM | 75 |
that is, it counts correctly for HTM blocks, but doesn't increment the line number for ASP blocks. I tried moving the line $line += ... before the push, but it didn't help.
cheers,
Aldo
Aldo
King of Laziness, Wizard of Impatience, Lord of Hubris
In Section
Cool Uses for Perl