On 11/20/07, Mark Wagner <[EMAIL PROTECTED]> wrote: > To simplify the question, can I use characters that aren't valid > Unicode, and if so, are there any consequences?
Do you mean, suppose I replace every non-ASCII character with some invalid character: my $invalid = chr(0x110000); $data =~ s/[^\0-\0177]/$invalid/g; ...Will there be any consequences? Yes; your data will be altered. (Is that what you're asking?) Are you trying to ask, will Perl prohibit the use of invalid Unicode characters? Perl strings should be safe for any data. What happened when you tried it? Are you trying to ask, will today's invalid Unicode characters be used for some valid purpose in tomorrow's Unicode, and thereby break my program? Maybe. Are you trying to ask something else? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/