{"id":1531,"date":"2018-02-26T18:56:06","date_gmt":"2018-02-26T23:56:06","guid":{"rendered":"http:\/\/bluegalaxy.info\/codewalk\/?p=1531"},"modified":"2018-02-26T18:56:06","modified_gmt":"2018-02-26T23:56:06","slug":"install-perl-confirm-installation","status":"publish","type":"post","link":"https:\/\/bluegalaxy.info\/codewalk\/2018\/02\/26\/install-perl-confirm-installation\/","title":{"rendered":"How to install Perl and confirm the installation"},"content":{"rendered":"<p>To install Perl on Windows 10, I went to <a href=\"http:\/\/perl.org\">perl.org<\/a> and followed the links to get to the Windows Binaries, where I clicked a <a href=\"https:\/\/www.perl.org\/get.html#win32\">link<\/a> to download ActivePerl. The name of the file that was downloaded was &#8216;ActivePerl-5.24.3.2404-MSWin32-x64-404865.exe&#8217;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"img_ds\" class=\"alignnone wp-image-1536\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl_camel-300x111.jpg\" alt=\"\" width=\"827\" height=\"306\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl_camel-300x111.jpg 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl_camel-768x284.jpg 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl_camel-676x250.jpg 676w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl_camel.jpg 1021w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<p>Then I installed Perl by clicking the .exe. Note: On one of the installation screens I chose the option to make sure that Perl was added to my system path. When the installation was complete, I checked my system Path to look for the new entries. I saw that these two entries were added:<\/p>\n<ul>\n<li>C:\\Perl64\\site\\bin<\/li>\n<li>C:\\Perl64\\bin<\/li>\n<\/ul>\n<p>Then to confirm the installation, I opened up a command window and typed:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">perl -v<\/pre>\n<p>Which confirmed the installation:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"img_ds\" class=\"alignnone wp-image-1533 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl-v.jpg\" alt=\"\" width=\"695\" height=\"274\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl-v.jpg 695w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl-v-300x118.jpg 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/perl-v-676x267.jpg 676w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/p>\n<p>Then I ran a test of Perl by running a script called printenv.pl in my local Apache server cgi-bin. It produced the following output:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">COMSPEC=\"C:\\WINDOWS\\system32\\cmd.exe\"\r\nCONTEXT_DOCUMENT_ROOT=\"C:\/Bitnami\/wampstack-7.1.14-0\/apache2\/cgi-bin\/\"\r\nCONTEXT_PREFIX=\"\/cgi-bin\/\"\r\nDOCUMENT_ROOT=\"C:\/Bitnami\/wampstack-7.1.14-0\/apache2\/htdocs\"\r\nGATEWAY_INTERFACE=\"CGI\/1.1\"\r\nHTTP_ACCEPT=\"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\"\r\nHTTP_ACCEPT_ENCODING=\"gzip, deflate\"\r\nHTTP_ACCEPT_LANGUAGE=\"en-US,en;q=0.5\"\r\nHTTP_CONNECTION=\"keep-alive\"\r\nHTTP_HOST=\"localhost\"\r\nHTTP_UPGRADE_INSECURE_REQUESTS=\"1\"\r\nHTTP_USER_AGENT=\"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko\/20100101 Firefox\/58.0\"\r\nOPENSSL_CONF=\"C:\\Bitnami\\wampstack-7.1.14-0\/apache2\/conf\/openssl.cnf\"\r\nPATH=\"C:\\Bitnami\\wampstack-7.1.14-0\/apache2\/bin;\"\r\nPATHEXT=\".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\"\r\nQUERY_STRING=\"\"\r\nREMOTE_ADDR=\"::1\"\r\nREMOTE_PORT=\"52686\"\r\nREQUEST_METHOD=\"GET\"\r\nREQUEST_SCHEME=\"http\"\r\nREQUEST_URI=\"\/cgi-bin\/printenv.pl\"\r\nSCRIPT_FILENAME=\"C:\/Bitnami\/wampstack-7.1.14-0\/apache2\/cgi-bin\/printenv.pl\"\r\nSCRIPT_NAME=\"\/cgi-bin\/printenv.pl\"\r\nSERVER_ADDR=\"::1\"\r\nSERVER_ADMIN=\"admin@example.com\"\r\nSERVER_NAME=\"localhost\"\r\nSERVER_PORT=\"80\"\r\nSERVER_PROTOCOL=\"HTTP\/1.1\"\r\nSERVER_SIGNATURE=\"\"\r\nSERVER_SOFTWARE=\"Apache\"\r\nSYSTEMROOT=\"C:\\WINDOWS\"\r\nWINDIR=\"C:\\WINDOWS\"<\/pre>\n<p>The Perl code in this script looks like this:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#!C:\/Perl64\/bin\/perl.exe\r\n##\r\n##  printenv -- demo CGI program which just prints its environment\r\n##\r\n\r\nprint \"Content-type: text\/plain; charset=iso-8859-1\\n\\n\";\r\nforeach $var (sort(keys(%ENV))) {\r\n    $val = $ENV{$var};\r\n    $val =~ s|\\n|\\\\n|g;\r\n    $val =~ s|\"|\\\\\"|g;\r\n    print \"${var}=\\\"${val}\\\"\\n\";\r\n}<\/pre>\n<p>For more information, see:<br \/>\n<a href=\"https:\/\/www.perl.org\">https:\/\/www.perl.org<\/a><br \/>\n<a href=\"https:\/\/www.perl.org\/get.html#win32\">https:\/\/www.perl.org\/get.html#win32<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To install Perl on Windows 10, I went to perl.org and followed the links to get to the Windows Binaries, where I clicked a link to download ActivePerl. The name of the file that was downloaded was &#8216;ActivePerl-5.24.3.2404-MSWin32-x64-404865.exe&#8217;. Then I installed Perl by clicking the .exe. Note: On one of the installation screens I chose &hellip; <a href=\"https:\/\/bluegalaxy.info\/codewalk\/2018\/02\/26\/install-perl-confirm-installation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to install Perl and confirm the installation<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[23],"class_list":["post-1531","post","type-post","status-publish","format-standard","hentry","category-perl-language","tag-perl"],"_links":{"self":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/comments?post=1531"}],"version-history":[{"count":6,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1531\/revisions"}],"predecessor-version":[{"id":1539,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1531\/revisions\/1539"}],"wp:attachment":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/media?parent=1531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/categories?post=1531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/tags?post=1531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}