mldvx4 has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to generate a span of Unicode characters. I am clearly missing some understanding about working with Unicode. The following produced no output except for a newline:
perl -Mutf8 -e 'binmode(STDOUT, ":utf8"); $a=join("", "\x{DF}" .. "\x{0101}"); print "$a\n";'
That style worked fine with the ASCII range, join("", "A" .. "Z"); but maybe I was doing it wrong there too. So what is a correct way to generate a string consisting of a span of Unicode characters?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Generating a range of Unicode characters
by davido (Cardinal) on Nov 16, 2017 at 05:46 UTC | |
|
Re: Generating a range of Unicode characters
by Your Mother (Archbishop) on Nov 16, 2017 at 06:13 UTC | |
by davido (Cardinal) on Nov 16, 2017 at 06:21 UTC | |
by mldvx4 (Hermit) on Nov 16, 2017 at 06:38 UTC | |
by hippo (Archbishop) on Nov 16, 2017 at 09:33 UTC | |
by Laurent_R (Canon) on Nov 16, 2017 at 08:19 UTC | |
by Your Mother (Archbishop) on Nov 16, 2017 at 06:42 UTC | |
|
Re: Generating a range of Unicode characters
by Anonymous Monk on Nov 16, 2017 at 09:50 UTC |