develooper Front page | perl.beginners | Postings from December 2002

Re: transforming strings to an array of characters

Thread Previous | Thread Next
From:
Tanton Gibbs
Date:
December 9, 2002 04:34
Subject:
Re: transforming strings to an array of characters
Message ID:
006b01c29f7f$667c99a0$d0921442@brooklyn
I know this has already been answered, but usually you can do things more
efficiently on the string itself...what are you trying to do?

Tanton
----- Original Message -----
From: "Erik Browaldh" <eribro@Pool.Informatik.RWTH-Aachen.DE>
To: <beginners@perl.org>
Sent: Monday, December 09, 2002 7:24 AM
Subject: transforming strings to an array of characters


> hi everyone!
>
> if  I have a string, lets say
> $word="perl";
>
> I want to copy this so I have something like this:
> @word_list["p","e","r","l"]
>
> also, how do I get the length of @word_list?
>
> thanks in advance!
> Erik
>
>
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
>
>
>


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