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/
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context