Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

in perl, is there an easier way to do (@word)=split(//,$word), such as a shorthand notation or specific function. thank you.

Replies are listed 'Best First'.
Re: splitting a word into an array
by Zaxo (Archbishop) on Jul 31, 2001 at 07:28 UTC

    No, but you can easily make one:

    # Usage : @word = letters $word sub letters { split //, shift; }

    I'm not sure that's all that much simpler.

    After Compline,
    Zaxo