Hello Jonathan, all,

thank you for your kind response.

[snip]

> I never use getc...
>
> In C, where getc originates, the getc function returns a
> char type. The C char type is almost always 8 bits long.
> By definition it doesn't support unicode, so neither does
> Perl. It would be nice if they told you though.

[snip]

the get() stuff really turned out to be the wrong track of reaching my goal. 
What I am doing now instead of getc()ing character after character is to use 
the File::Slurp module. From this module i now found very useful reading in the 
complete file content into a single scalar, tough i do know, that holding 
content of a complete file in _one_ scalar is not very scalable. For the 
processing afterwards in my script however it seems to be the only solution.

Additionally just one comment: my problem of dealing with unicode input is 
quite comfortably solved now. Interestingly the File::Slurp module from CPAN, 
which is referenced in the perl documentation, seems not to be able to deal 
with unicode content. For this case using the CPAN module Perl6::Slurp, which 
requires at least Perl 5.8.0, completely resolved the unicode problem.

Again, thank you very much for your valueable input,
Tim
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to