in reply to MS-DOS search using globs

Mr Cassata Try using the chomp operator to remove the trailing newline of the input string. Example:
chomp($ext = <STDIN>);