in reply to Re^2: Match full utf-8 characters
in thread Match full utf-8 characters
but does not work when I collect it with:my $user_input = <STDIN>;
and I need to use hippo's suggestion below. In each iteration, $char is a byte. Is there a way to coerce $char to be utf8?my $stdin = new IO::Handle; $stdin->fdopen( fileno( STDIN ), "r" ) || die "Cannot open STDIN"; while ( my $char = $stdin->getc() ) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Match full utf-8 characters
by Anonymous Monk on Apr 29, 2019 at 13:55 UTC | |
by Allasso (Monk) on Apr 29, 2019 at 15:14 UTC | |
by Anonymous Monk on Apr 29, 2019 at 16:24 UTC | |
by Allasso (Monk) on Apr 29, 2019 at 17:44 UTC |