If I have the string "abcd", what is the shortest way to convert to @arr containing qw (abcd)?
my @arr = split //, "abcd"; my @arr = "abcd" =~ /./sg; my @arr = unpack '(A)*', 'abcd';
The easiest way is with a regex section that matches something.
my @arr = split //, "abcd";