ruby: accept only strings
perl: store only strings