in reply to Re^3: Match full utf-8 characters
in thread Match full utf-8 characters
That's a very convoluted way of achieving something that's already done for you:
I.e. if IO::Handle is loaded, STDIN is already an object resembling IO::Handle and you can call getc method on it.$ perl -E'say STDIN->can("getc")' $ perl -MIO::Handle -E'say STDIN->can("getc")' CODE(0x55dddd02b150)
But for the sake of the exercise, you should be able to pass "<:utf8" instead of "r" to fdopen and have getc return Unicode characterscode points again. (untested)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Match full utf-8 characters
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 |