
garrafa
Novice
Oct 23, 2006, 7:05 AM
Post #4 of 5
(268 views)
|
|
Re: [davorg] Case insensitive postmodifier "i" makes pl crash?!
[In reply to]
|
Can't Post
|
|
Thanks for your answers. It's true, it's not really crashing, it's just doing nothing. I apreciate the solution you both (Davorg and KevinR) gave me, I'll try them now. In the case of what Davorg wrote, I'll have to add the "i" to make it insensitive I guess. I'd never used the "m//g" because it always worked for me what I did with the "s///" in the while cicle. Still, I don't think the script enters into an endless loop, because for every line it matches, it replaces what has captured, so the next loop it won't match. No matter if there is 1 match or 1000 matches per line, eventually it will replace all matches till it will match no more. Besides, the process hangs after processing about 749100 files correctly, so the only way it enters into an endless loop, is under very particular conditions of an especific file (which I can't really imagine). Before you ask me, I'm not logging the processed files, so I don't know if every time it hangs on the same file . (may be I should do that ) Anyway, I'll try your suggestions, so thanks a lot, really . Garrafa
(This post was edited by garrafa on Oct 23, 2006, 7:09 AM)
|