[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] STRING2LIST conversion




Split on the emptya pattern will do this..

@list = split(//, "anystring");

kevin
lenzo@cs.cmu.edu


> Is there a function to load a @list with string's characters as elements:
> 
>                 @list= func("anystring");
> 
> returns $list[0]="a", .... $list[9]="g" ???
> 
> I read getc must be avoided (SLOW!) ...
> 
> Luca.post
> 
>