Hi all,
I'm writing a bunch of examples for perl 6 pleac and it seems rather
natural to expect $string.chars to return a list of unicode chars in
list context, however I can't find anything to confirm that. (The
other alternatives being split and unpack.)
# unpack
@array = unpack(C*, $string);
Hi,
gcomnz wrote:
I'm writing a bunch of examples for perl 6 pleac and it seems rather
natural to expect $string.chars to return a list of unicode chars in
list context, however I can't find anything to confirm that. (The
other alternatives being split and unpack.)
I like that.
If one
I'm working on docs/S28draft.pod in the pugs project. And consulting perl5's
perlvar.pod, the issue of use English comes up. AFAICT from various sources,
little has been said about this
NOTE:
http://groups-beta.google.com/group/perl.perl6.language/msg/fa241233bcfba024:
we've already been
David Vergin skribis 2005-04-11 9:44 (-0700):
What's the word. Will there be something like use English?
Yes, and it's the default :)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
On Mon, 2005-04-11 at 14:31, Juerd wrote:
David Vergin skribis 2005-04-11 9:44 (-0700):
What's the word. Will there be something like use English?
Yes, and it's the default :)
Yes, but it will be spelled:
use $*LANG ;-)
Seriously, is there some reason that we would not provide a
Aaron Sherman skribis 2005-04-11 14:49 (-0400):
Yes, but it will be spelled:
use $*LANG ;-)
Seriously, is there some reason that we would not provide a
Language::Russian and Language::Nihongo? Given Perl 6, it would even
be quite valid for those modules to add aliases for all of the
On 2005-04-11 15:00, Juerd [EMAIL PROTECTED] wrote:
I'm not even sure I like the *possibility* of using non-ascii letters in
identifiers, even.
I agree that it would be a nightmare if project A used presu instead of
print everywhere, while project B used toon, etc. But non-ASCII
On Mon, 2005-04-11 at 14:12, Ingo Blechschmidt wrote:
gcomnz wrote:
I'm writing a bunch of examples for perl 6 pleac and it seems rather
natural to expect $string.chars to return a list of unicode chars in
list context, however I can't find anything to confirm that. (The
other
I have to say I'm slightly confused too for some languages, especially
for syllabic alphabets. At the same time, I'm pretty clear for CJK,
Syllabaries, and alphabets, or at least I hope I'm clear (I guess I'm
about to find out), .chars just returns the right unicode level for
whatever the string
On Mon, 2005-04-11 at 15:00, Juerd wrote:
Aaron Sherman skribis 2005-04-11 14:49 (-0400):
Yes, but it will be spelled:
use $*LANG ;-)
Seriously, is there some reason that we would not provide a
Language::Russian and Language::Nihongo? Given Perl 6, it would even
be quite valid for
On 2005-04-11 15:40, gcomnz [EMAIL PROTECTED] wrote:
.chars would return [EMAIL PROTECTED]@, which can probably be
expressed
with UTF8?
The string is probably represented internally as UTF-8, but that
should have no effect on what .chars returns, which should, indeed, be
[EMAIL PROTECTED],
On Mon, 2005-04-11 at 15:40, gcomnz wrote:
I have to say I'm slightly confused too for some languages,
especiallyfor syllabic alphabets. At the same time, I'm pretty clear
for CJK,Syllabaries, and alphabets, or at least I hope I'm clear (I
guess I'mabout to find out), .chars just returns the
abc.chars would return a b c, which I'm guessing would be
bytesize usually.
Fair enough.
.chars would return [EMAIL PROTECTED]@, which can probably be
expressed with
UTF8?
I think you're confusing UTF8 (which can represent ALL Unicode
characters) and the UTF8 subset which
Hey all, more pleac conversion questions:
I can't prove with the docs that a heredoc will continue to work as
positional params to a function call, particularly where it's not the
first param:
die Couldn't send mail unless send_mail qq:to/EOTEXT/, $target
here doc here ...
EOTEXT
gcomnz writes:
Hey all, more pleac conversion questions:
I can't prove with the docs that a heredoc will continue to work as
positional params to a function call, particularly where it's not the
first param:
die Couldn't send mail unless send_mail qq:to/EOTEXT/, $target
here doc
gcomnz wrote:
Hi all,
I'm writing a bunch of examples for perl 6 pleac and it seems rather
natural to expect $string.chars to return a list of unicode chars in
list context, however I can't find anything to confirm that. (The
other alternatives being split and unpack.)
# unpack
@array =
Rod wrote:
However, I do like the idea of treating a string as an array of chars. I
remember some discussion a while back about making [] on strings do
something useful (but not the same thing as Csubstr), but I forget how
it ended, and my brain is too fried to go hunt it down. But overall I
On Apr 12, 2005 12:20 AM, gcomnz [EMAIL PROTECTED] wrote:
Rod wrote:
However, I do like the idea of treating a string as an array of chars. I
remember some discussion a while back about making [] on strings do
something useful (but not the same thing as Csubstr), but I forget how
it
However, I do like the idea of treating a string as an array of chars. I
remember some discussion a while back about making [] on strings do
something useful (but not the same thing as Csubstr), but I forget how
it ended, and my brain is too fried to go hunt it down. But overall I
Matt Diephouse wrote:
On Apr 12, 2005 12:20 AM, gcomnz [EMAIL PROTECTED] wrote:
Rod wrote:
However, I do like the idea of treating a string as an array of chars. I
remember some discussion a while back about making [] on strings do
something useful (but not the same thing as Csubstr), but I
20 matches
Mail list logo