You are not the first one who is facing a problem. That's why I always share the solution of problems on my blog those I have faced. I believe someone will find these helpful.

Tuesday, April 1, 2008

Perl string to character array conversion

Below is an example code that will split a string into an array of char[] like C/C++ or other language. There is no built in function in Perl to do such task. Hope below example will helpful for many people.## String to convert into char arraymy $str = "my name is deadman";

## Spliting the string with no delimeter.my @char_array = split(//,"$str");