in reply to Regular expressions

$temp2 =~ /^[a-zA-Z]+$/ # ^ denotes the beginning # + denotes one or more matches # $ denotes the end
You may want to see perldoc perlre.