I'm not sure if anyone has noticed this, so I thought I'd post.
If I create a string using here syntax:
my $string <<EOF; ... ... EOF print $string;
And $string contains UTF-8 characters they get mangled somehow when they go through the output chain.
However, if I build the same document using
my $string; $string .= "..." $string .= "..." $string .= "..." print $string;
Then everything is good.
Thoughts?
Linux Perl 5.8.1 (RedHat 9)
Note that this program generates the same results (mod the extra \n):
#!/usr/bin/perl -w
my $fh; open ($fh, "<", "utf8french.txt") || die; my $stuff = <$fh>; close ($fh);
print $stuff; print <<EOF $stuff EOF
-- Matthew Darwin [EMAIL PROTECTED] http://www.mdarwin.ca
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html