None of these commands correctly split a scalar into characters. split($str) lacks a pattern, split(/\s/, $str) splits on whitespace, and split(/./, $str) uses '.' as a regex meta-character matching any character. The correct syntax is split(//, $str) or split('', $str).