Which of the following commands will turn a scalar ($str)into an array of characters?

A. @a = split($str).
B. @a = split(/\s/, $str).
C. This task can be done in Perl but none of the above commands do it.

Ans: C

0 comments: