develooper Front page | perl.perl5.porters | Postings from October 2021

Re: "use v5.36.0" should imply ASCII source

Thread Previous | Thread Next
Yuki Kimoto
October 4, 2021 08:45
Re: "use v5.36.0" should imply ASCII source
Message ID:
2021-10-4 3:57 Ricardo Signes <> wrote:

> *ONE:*  What's the end state we'd like to get to?
 I have a question.

  echo -e '1' | perl -p -E 's/\d/1/'

'1' of echo argument is Japanese UTF-8. Output is ASCII 1.

Current Output(UTF-8 1)


Ideal Output(ASCII 1)


Do you want this to work ideally in the UNIX/Linux system?

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About