in reply to RegEx Problem
$word=<STDIN>; chomp ($word); $word=~s/[A-Z]/-$&/g; #converts A to -A $word=~tr [A-Z][a-z]; #converts -A to -a print $word [download]