i'm parsing files that could have lines spanning more than one line
I think a moment's thought will tell you there's a big problem with that statement!
If you have "lines" which span more than one "line", then you're going to have to define for us what the word "line" means for you -- first at the start of the sentence and then what it means at the end of the sentence.
To put it another way, perl is happy to let you decide what the end of a line looks like, but you don't appear to know yourself.
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
|