in reply to Length and Chomp ??

hi, In perl normally <STDIN> will have a single white space at the end of the input value to remove it we can use the chomp() function. So, if you include chomp() function in your code then it will show the correct length.