It is a quirk of Perl's error reporting that an error inside an if block may give the number of the line on which the if block starts, rather than the line within the if block where the error actually occured. Thus, you may have to look within the if block that starts on line 30 for the source of the error.
Looking at tachyon's post, I see that this if statement is followed by a call to quotemeta. I expect that's what is causing the problem; quotemeta() backslashes everything except word characters, so it might use a function called IsWord to figure out if a certain UTF8 character should be backslashes or not.
Unfortunately, I don't know why the IsWord function has not been loaded. You may want to produce a small test case and submit a bug report using the perlbug utility that comes with Perl.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.