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

Re: split and nils?

Thread Previous | Thread Next
ToddAndMargo via perl6-users
February 6, 2019 19:57
Re: split and nils?
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About