PetaMem has asked for the wisdom of the Perl Monks concerning the following question:
we´re encountering increasing problems with our Perl sources. They´re edited using Emacs, and especially within emacs the modes cperl and folding.el.
The trick folding.el does to remember the state of a folded block (folded or not) is to simply replace LF with CR. Well ... so far so good - as long as the perl source is not UTF-8 encoded. If it is, the Perl interpreter/tokenizer(?) just skips folded blocks and you end up with lots of missing code.
Our current only workaround for this is not to use folding in UTF-8 Perl soucecode. But this increasingly is a pain in the ... brain.
Is there some runtime/switch/whatever option to tell perl what "line-delimiters" it should accept? Considering Damians SelfGOL, where LF is a subroutine name... should this be a easy one. :-)
Bye
PetaMem
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl "incompatibility" with CR when using utf-8 Files
by hardburn (Abbot) on Apr 23, 2003 at 16:12 UTC | |
by PetaMem (Priest) on Apr 23, 2003 at 16:51 UTC | |
by hardburn (Abbot) on Apr 23, 2003 at 23:23 UTC | |
by ph0enix (Friar) on Apr 23, 2003 at 16:39 UTC | |
|
Re: Perl "incompatibility" with CR when using utf-8 Files
by jonadab (Parson) on Apr 24, 2003 at 03:01 UTC |