in reply to Re: Regex variable capturing gotchain thread Regex variable capturing gotcha
As a sidenote, instead of keeping a line counter yourself, you can use Perl's $. variable,