in reply to Perl calling Linux commands

Read the advice you got in your previous post about using chomp when reading input input from users.