in reply to Re: Help with regex
in thread Help with regex

You could also use the special variable $. instead of $linenumber.
not while looping over an array, only when reading lines from a filehandle.