What is the shortest way to convert string characters into an array of characters in Perl? - Get link Facebook X Pinterest Email Other Apps 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
Comments
Post a Comment