in reply to verifying CGI.pm is installed or not

Your first quote character is a backtick character, for which there is no matching counterpart at the end...  Try (on Windows):

C:\perlfiles> perl -MCGI -e "print qq{CGI.pm version $CGI::VERSION\n}; +"

or, on Unix:

$ perl -MCGI -e 'print "CGI.pm version $CGI::VERSION\n";'