in reply to Re: Regex to find the last matching set in a long scalar
in thread Regex to find the last matching set in a long scalar
Maybe. I don't know how to reverse a scalar. I could convert it to an array and reverse that, which is my current (slow) method. My end goal is to avoid having to manipulate this giant scalar as much as possible, and I was hoping with with the proper regex I could extract the data I want with as little handling of the large file as possible.
Sadly, because of the way I'm retrieving this file I can't just read it from the filehandle, it has to be a single scalar, so elegant solutions like File::ReadBackwards don't work in my case either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex to find the last matching set in a long scalar
by Corion (Patriarch) on Nov 15, 2014 at 09:27 UTC | |
by superwombat (Acolyte) on Nov 15, 2014 at 09:43 UTC |