This is an ugly kludge, but it will work: keep your actual Perl sources that you edit in one directory tree, then wire up a hook in cperl-mode so that every time you save it _also_ autogenerates the same file in the target directory tree (where you run them from) with the CRs replaces with LFs. Should be about twelve lines of elisp, but you have to train everyone to edit in the special directory tree, not the actual location.
{my$c;$ x=sub{++$c}}map{$ \.=$_->()}map{my$a=$_->[1]; sub{$a++ }}sort{_($a->[0 ])<=>_( $b->[0])}map{my@x=(& $x( ),$ _) ;\ @x} split //, "rPcr t lhuJnhea eretk.as o";print;sub _{ord(shift)*($=-++$^H)%(42-ord("\r"))};
In reply to Re: Perl "incompatibility" with CR when using utf-8 Files
by jonadab
in thread Perl "incompatibility" with CR when using utf-8 Files
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |