blahblahblah has asked for the wisdom of the Perl Monks concerning the following question:
But so far either the split seems to be giving me the wrong number of characters, or ord is trying to force them into an incorrect ascii value.@chars = split '', $string; for my $char (@chars) { my $ord = ord $char; print "$char $ord\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: detecting non-ascii chars in a string
by Zaxo (Archbishop) on Dec 05, 2002 at 02:30 UTC | |
|
Re: detecting non-ascii chars in a string
by pg (Canon) on Dec 05, 2002 at 02:16 UTC | |
by grantm (Parson) on Dec 05, 2002 at 08:51 UTC | |
|
Re: detecting non-ascii chars in a string
by blahblahblah (Priest) on Dec 05, 2002 at 01:26 UTC | |
|
Re: detecting non-ascii chars in a string
by princepawn (Parson) on Dec 05, 2002 at 16:14 UTC |