develooper Front page | perl.perl6.users | Postings from February 2019

Re: split and nils?

Thread Previous | Thread Next
From:
Laurent Rosenfeld via perl6-users
Date:
February 6, 2019 20:12
Subject:
Re: split and nils?
Message ID:
CAO=jjnp_2QQnp+0f1xykM7TOvm1qxZecQu15XB6S=e+at5Jhxw@mail.gmail.com
Brad told you already: use comb.


Le mer. 6 févr. 2019 à 20:57, ToddAndMargo via perl6-users <
perl6-users@perl.org> a écrit :

> On 2/6/19 5:19 AM, Brad Gilbert wrote:
> > The reason there is a Nil, is you asked for the ord of an empty string.
> >
> >      "".ord =:= Nil
> >
> > The reason there are two empty strings is you asked for them.
>
> What would be the most practice way of converting a string to and
> array of characters?
>
> $x="abc" goes to @y[0]="a", @y[1]="b", @y[2]="c"
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About