From: Henning Hraban Ramm <hraban@fiee.net>
Subject: Re: Perl scripting (was: Arabic-utf-8)
Date: Mon, 7 Jun 2004 21:45:51 +0200 [thread overview]
Message-ID: <48298A78-B8BB-11D8-B5E0-0030659899AA@fiee.net> (raw)
In-Reply-To: <1086557285.6599.16.camel@tascomputer.home>
Am Sonntag, 06.06.04, um 23:28 Uhr (Europe/Zurich) schrieb Thomas A.
Schmitz:
> Well, if you put the
> use open ':utf8';
> in the header of your perl script, it should work without the hex
> 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 = <>;
> my $text = join "", @lines;
>
> $text =~ 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
> 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üßlis vom Hraban!
--
http://www.fiee.net/texnique/
next prev parent reply other threads:[~2004-06-07 19:45 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-05 19:32 Arabic-utf-8 (plus a sample) Idris Samawi Hamid
2004-06-05 20:41 ` Thomas A. Schmitz
2004-06-05 21:33 ` Idris Samawi Hamid
2004-06-05 21:48 ` Thomas A. Schmitz
2004-06-05 22:51 ` Idris Samawi Hamid
2004-06-05 23:15 ` Re[2]: " Giuseppe Bilotta
2004-06-05 23:31 ` Idris Samawi Hamid
2004-06-05 23:58 ` Re[4]: " Giuseppe Bilotta
2004-06-06 0:19 ` Idris Samawi Hamid
2004-06-06 0:26 ` Idris Samawi Hamid
2004-06-06 9:09 ` Perl scripting (was: Arabic-utf-8) Henning Hraban Ramm
2004-06-06 21:03 ` Idris Samawi Hamid
2004-06-06 21:28 ` Thomas A. Schmitz
2004-06-07 19:45 ` Henning Hraban Ramm [this message]
2004-06-07 20:53 ` Thomas A.Schmitz
2004-06-05 23:08 ` [SPAM: 3.411] Arabic-utf-8 (plus a sample) Richard MAHONEY
2004-06-06 0:19 ` Idris Samawi Hamid
2004-06-06 13:22 ` Arabic-utf-8 " George N. White III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48298A78-B8BB-11D8-B5E0-0030659899AA@fiee.net \
--to=hraban@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).