Feed on
Posts
Comments

to convert a string into an array of characters:

$string = “a very nice string”;

@char_array = split(”,$string);


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

One Response to “convert a string into an array in perl”

  1. on 03 Jun 2011 at 5:26 am Alex

    Works! Thanks!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS