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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -