http://search.cpan.org/search?query=rtf&mode=all
-----Original Message----- From: Nestor, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 9:10 AM To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' Subject: RE: new, exciting error message III Thanks for the help, Dave. As it turns out, it was a data problem--I'm trying to parse an RTF file, and was getting an unexpected style--for whatever reason, that was knocking the script for a loop. I'm using MacPerl 5.6.1 on Mac OS 9.2.2. In desperation, I did some diagnostics on my machine, and discovered the MacPerl preferences file lost its resource fork--that probably didn't help things, either. Out of curiosity, is there a module for parsing RTF files? I try to write to vanilla perl setups, but it I can see where it might be worthwhile in this instance. John > ---------- > From: david > Reply To: [EMAIL PROTECTED] > Sent: Tuesday, September 2, 2003 1:02 PM > To: [EMAIL PROTECTED] > Subject: Re: new, exciting error message III > > John Nestor wrote: > > > A couple of days ago, I sent in some code with an error message: > > > > Can't find unicode character property definition via main->a or > > a.plFile 'unicode/Is/a.pl'; Line 0 > > > > As it turns out, the code sample I included was not the cause of the > > problem, apparently. However, if I comment out the following line: > > > > $_=~s#^\\par (.+?)$#\\par <IDX1>$1<\/IDX1>\n#; > > i might have missed your previous message a couple days ago but what > version of Perl are you working with and on what platform? this line > doesn't cause > > any problem on my machine, RH 7.3 2.4.18-14 with Perl v5.8.0. > > the error message you are describing usually happen when Perl can't > find the unicode mapping for a certain characters that it can't find. > for example, in a UNIX machine with Perl v5.6.0 and a OpenBSD box with > Perl v5.6.1: > > [panda] $ perl -e '$_=""; s/\par//' > Can't find unicode character property definition via main->a or a.pl > at > unicode/Is/a.pl line 1 > [panda] $ > > the '\pa' thing tells Perl to look for a character mapping for the > unicode > > character 'a' which doesn't exists. your regex actully correctly > espace the '\' with '\\' so it shouldn't be a problem at all. are you > sure it's not just a typo somewhere? > > david > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > ************************************************************************ **** This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ************************************************************************ **** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]