in reply to Re^2: Regex to find the last matching set in a long scalar
in thread Regex to find the last matching set in a long scalar
Yes, I definitely agree with you that it is usually not the best idea to slurp a huge file into a scalar (or an array), and I usually avoid that even for smaller files, at least when possible. And also that the iterating backward with the module you are mentioning is probably a better solution.