in reply to parse from last occurence of pattern match

Logically the right thing to do is to read the file backward and when you find the "first" occurrence of the pattern, that's the last one.

How to actually do it? Er, Tie::File would be a good place to start I suppose?



($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
  • Comment on Re: parse from last occurence of pattern match