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

Re: split and nils?

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
February 6, 2019 19:57
Subject:
Re: split and nils?
Message ID:
cd2bd34b-6cea-f9ee-ef48-b407cb0eeeae@zoho.com
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