in reply to Entering the land of Perl

Welcome to Perl! this is a wonderful land..

TIMTOWTDT (i'm not a master, take with doubt my code..)
perl -e ' print scalar split (//,$ARGV[0]),"\t", (sort split (//,$ +ARGV[0])),"\n"' TGAC

L*
there are no rules, there are no thumbs..