From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15343 Path: main.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: Perl scripting (was: Arabic-utf-8) Date: Mon, 7 Jun 2004 21:45:51 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <48298A78-B8BB-11D8-B5E0-0030659899AA@fiee.net> References: <1086557285.6599.16.camel@tascomputer.home> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v553) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1086637683 22117 80.91.224.253 (7 Jun 2004 19:48:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2004 19:48:03 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jun 07 21:47:53 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BXQ65-0003th-00 for ; Mon, 07 Jun 2004 21:47:53 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6EC4E10B4C; Mon, 7 Jun 2004 21:47:48 +0200 (MEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by ref.ntg.nl (Postfix) with ESMTP id 36CE310B18 for ; Mon, 7 Jun 2004 21:45:53 +0200 (MEST) Original-Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BXQ49-0005uX-00 for ntg-context@ntg.nl; Mon, 07 Jun 2004 21:45:53 +0200 Original-Received: from [213.3.75.132] (helo=fiee.net) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1BXQ48-0007Sh-00 for ntg-context@ntg.nl; Mon, 07 Jun 2004 21:45:53 +0200 Original-To: ntg-context@ntg.nl In-Reply-To: <1086557285.6599.16.camel@tascomputer.home> X-Mailer: Apple Mail (2.553) X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:033f42bdb3cd4a3c9b0966e414a370c7 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15343 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15343 Am Sonntag, 06.06.04, um 23:28 Uhr (Europe/Zurich) schrieb Thomas A.=20 Schmitz: > Well, if you put the > use open ':utf8'; > in the header of your perl script, it should work without the hex=20 > editor Not needed with Perl 5.8.x and a proper UTF8 file. > And just for the record: to put the entire file in one array, use = this: > my @lines =3D <>; > my $text =3D join "", @lines; > > $text =3D~ s/PUT_YOUR/SUBSTITUIONS_HERE/esg; Thank you, I always forget the really simple solutions. ;-) And with File::Slurp you get it directly into a scalar. > But it looks like you got a working solution now, so have fun playing > around with it. And boy does it make one feel good when you realize=20 > that > you windoze people are still working with perl 5.6 -- that's the stone > age, man ;-) MacOS X has also only 5.6 if you don't install a newer one yourself, and with newer than 5.8.0 you get endless trouble... Gr=FC=DFlis vom Hraban! --=20 http://www.fiee.net/texnique/