in reply to Character Count

You want the length function e.g
perl -le 'my $str = "perlmonks"; print "yep" if length $str == 9' yep
HTH

_________
broquaint