Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: String into Array

by BeernuT (Pilgrim)
on Feb 10, 2002 at 20:56 UTC ( [id://144557]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to String into Array

if you just want 1 letter per element then simply do
$string = 'hello'; @array = split(//, $string);

hope this helps

-bn

-----BEGIN PERL GEEK CODE BLOCK----- Version: 0.01 P+>+++( )$c->++P6 R++>+M >+$O >++MA+>++E >+PU >++BD >+++C+$D++$S+++>++++$X!WP+> ( )MO!PP++++n+>++CO-->+++PO-o >++G >+++A >+++OL!OLC+>++OLR+>++Ee!Ev!Eon+uL+++>*$ uB+$uS+$uH+$uo+$w-->---m! ------END PERL GEEK CODE BLOCK------

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://144557]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.