in reply to Substitution Loop
Any MS Office files under the 1GB mark seem to happily go through the cleanup - others die miserably with the [seemingly] unrecoverable "Substitution loop in..." error.local $/ ; open FILE, $file ; my $data = <FILE> ; #yes, I have enough memory close FILE ; $data =~ s/[^[:ascii:]]+//g ; while ($data =~ /($regex)/g) { ... }
v5.8.8 built for x86_64-linux-thread-multi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Substitution Loop
by Anonymous Monk on Jan 09, 2014 at 15:31 UTC |