develooper Front page | perl.perl6.language | Postings from June 2005

Revisiting .chars (and friends) in list context

Thread Next
Joshua Gatcomb
June 2, 2005 07:59
Revisiting .chars (and friends) in list context
Message ID:
I would like to revisit the following question as there was no
decision reached AFAICT.

What I would like to be able to do is:

my $str = 'hello';
my @chars = $str.chars; # <h e l l o>

There were some good points raised in that thread that I think are
valid, but I think it digressed from the intent of the original
question.  Perhaps that is because "unicode" prefaced chars which
clouded the waters.  I don't know anything about unicode and leaving
the hard choices for doing the "right thing" up to you all.  Whatever
the "right thing" is, will there be a way to do what my code snippet

Joshua Gatcomb
a.k.a. L~R

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