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

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

1.@a = split($str).

2.@a = split(/s/, $str).

3.This task can be done in Perl but none of the above commands do it.

4.assigns 3 to$x.

Posted Date:-2022-01-18 23:46:55


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!