What is the shortest way to convert string characters into an array of characters in Perl? -


If I have "abcd" string, then what is the shortest way to convert to @rq qw (abcd) ?

  my @arr = split //, "abcd"; My @arr = "abcd" = ~ /./sg; My @arr = Unpack '(A) *', 'ABCD';    

Comments