ruski86 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I've been banging my head against this for a week, and I'm pretty stuck. I have some regexs that run completely fine on my local machine, taking mere milliseconds. They work for both ASCII and unicode and cause me no problems whatsoever (assuming correct conversion to unicode when needed, etc...). This all happens locally on a Windows box using cygwin and Perl 5.10.1.
Now, as soon as I take that exact same code and throw it on a Linux server running Perl 5.8.8, everything still works in about the same length of time except for seven regular expressions (out of hundreds that I'm using) which for one reason or another wind up hanging and taking a long time (seconds v.s. milliseconds) for Japanese UTF8. I don't see anything special in these 7 regexs, or understand why there might be a problem in only Japanese (other high Unicode, like Chinese or Thai works fine), or why this problem only exists remotely on Perl 5.8.8 and not locally on Perl 5.10.1.
Upgrading the server to 5.10.1 is out of the question, so I need to find a work around for these. A few of the problematic regexs are:
Has anyone ever experienced anything similar?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Weird Perl 5.8.8 Regex Problems for Japanese UTF8
by graff (Chancellor) on Sep 07, 2010 at 22:11 UTC | |
by ruski86 (Initiate) on Sep 08, 2010 at 14:10 UTC | |
by JavaFan (Canon) on Sep 08, 2010 at 15:30 UTC | |
by ikegami (Patriarch) on Sep 08, 2010 at 16:25 UTC | |
by graff (Chancellor) on Sep 08, 2010 at 22:18 UTC | |
|
Re: Weird Perl 5.8.8 Regex Problems for Japanese UTF8
by JavaFan (Canon) on Sep 07, 2010 at 20:58 UTC | |
by ruski86 (Initiate) on Sep 08, 2010 at 14:04 UTC |