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

transforming strings to an array of characters

Thread Next
From:
Erik Browaldh
Date:
December 9, 2002 04:26
Subject:
transforming strings to an array of characters
Message ID:
3DF48B69.8020007@pool.informatik.rwth-aachen.de
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





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