<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kurinchi Blogger Scribbles ... &#187; Perl</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/category/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Perl: How to debug in Perl?</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/04/perl-how-to-debug-in-perl.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/04/perl-how-to-debug-in-perl.html#comments</comments>
		<pubDate>Fri, 30 Apr 2010 10:38:11 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[cgi application misbehaved]]></category>
		<category><![CDATA[cgi header]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[perl error]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=826</guid>
		<description><![CDATA[Turn on warnings by use warning; To run a perl script with warnings, type -w with the shebang as in #!/usr/bin/perl -w print &#8220;Content-type: text/html\n\n&#8221;; print &#8220;Hello World\n&#8221;; Check if you have the following line in the program print &#8220;Content-type: text/html\n\n&#8221;; This will output the text to the browser from the server. Print error messages [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Turn on warnings by </strong><br />
use warning;</p>
<p><strong>To run a perl script with warnings, type -w with the shebang as in</strong><br />
#!/usr/bin/perl -w<br />
print &#8220;Content-type: text/html\n\n&#8221;;<br />
print &#8220;Hello World\n&#8221;;</p>
<p><strong>Check if you have the following line in the program</strong><br />
print &#8220;Content-type: text/html\n\n&#8221;;<br />
This will output the text to the browser from the server.</p>
<p>Print error messages to the browser using<br />
use CGI::Carp qw(fatalsToBrowser);</p>
<p>The other way is to use the print command to debug your program.</p>
<p><strong>Common error messages</strong><br />
<em>&raquo; The specified CGI application misbehaved by not returning a complete set of HTTP headers.<br />
&raquo; Can&#8217;t locate missing-file.pm in @INC (@INC contains: &#8230;.. )</em></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/04/perl-how-to-debug-in-perl.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CGI Vs. Perl &#8230; What then is CGI?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/04/cgi-vs-perl-what-then-is-cgi.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/04/cgi-vs-perl-what-then-is-cgi.html#comments</comments>
		<pubDate>Wed, 29 Apr 2009 02:09:48 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[CGI Perl]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=278</guid>
		<description><![CDATA[CGI is not a programming language. It is a standard programming interface which gives a web page the capability to run/access other resources on the server(s) which visitors wouldn&#8217;t have direct access to. Perl is a scripting language. It is often misconceived to be the same as CGI, as Perl was the popular language at [...]]]></description>
			<content:encoded><![CDATA[<p><strong>CGI</strong> is not a programming language. It is a standard <strong>programming interface</strong> which gives a web page the capability to run/access other resources on the server(s) which visitors wouldn&#8217;t have direct access to.</p>
<p><strong>Perl is a scripting language</strong>. It is often misconceived to be the same as CGI, as Perl was the popular language at the time when CGI gained momentum in the web world.</p>
<p>CGI can refer to a &#8220;<em>scripting language</em>&#8221; which gets interpreted when calls to a page from the webserver is being made. It can be referred as a &#8220;<em>program</em>&#8220;, when it gets executed on the webserver to have access to resources with hard coded paths other programs when a call from a web page happens.</p>
<p>In short, all Web applications built using ASP/PHP/Python/Perl speaks through the channel &#8211; CGI.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/04/cgi-vs-perl-what-then-is-cgi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ActiveState Perl on Ubuntu</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/03/install-activestate-perl-on-ubuntu.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/03/install-activestate-perl-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 31 Mar 2009 00:48:36 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[activestate perl]]></category>
		<category><![CDATA[activestate perl on ubuntu]]></category>
		<category><![CDATA[perl installation steps]]></category>
		<category><![CDATA[perl path setting]]></category>
		<category><![CDATA[setting perl path]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=227</guid>
		<description><![CDATA[Install Perl from ActiveState on Ubuntu machine I prefer ActiveState download for a beginner to have a Perl installation with compiled libraries for immediate execution of various Perl programs. You can grab a copy based on your OS from http://www.activestate.com/activeperl/downloads/ Download the x86 .deb file for easy installation of ActivePerl on Ubuntu. If you have [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install Perl from ActiveState on Ubuntu machine</strong></p>
<p>I prefer ActiveState download for a beginner to have a Perl installation with compiled libraries for immediate execution of various Perl programs. You can grab a copy based on your OS from</p>
<p><a href="http://www.activestate.com/activeperl/downloads/">http://www.activestate.com/activeperl/downloads/</a></p>
<p>Download the x86 .deb file for easy installation of ActivePerl on Ubuntu.<span id="more-227"></span> If you have downloaded it to your /tmp location then you can unpackage the download by executing the below command</p>
<p><em>$ sudo dpkg -i /tmp/name-of-active-perl.deb</em></p>
<p>Normally it gets installed in the directory /opt. You can move the directory to the location of your choice. </p>
<p>Check your path settings by<br />
<em>$ echo $PATH</em></p>
<p>If there were previous installation of perl, you need to modify the path setting so that the setting to ActivePerl location comes prior to all other perl locations.</p>
<p><strong>Task: List installed perl module</strong></p>
<p>To display the list enter the following command:<br />
$ instmodsh</p>
<p><strong>How to set Perl path for libraries?</strong></p>
<p>export PATH=$PATH:/home/YourUserName/bin</p>
<p>Note that the path separator here is &#8220;:&#8221; (semi-colon)</p>
<p>There might be a possibility that an edit of .bashrc file may become corrupted. If it happened to you, then you may not be able to execute most of the commands on linux prompt.</p>
<p>The solution for it is to reset the path settings in order for bash file to identify what the commands are in that shell.</p>
<p>Execute the below command to reset Ubuntu path settings</p>
<p>$export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</p>
<p>Ensure that there is no &#8220;space&#8221; around equal to sign in the path settings.</p>
<p>Visit activestate.com website to get more installation related info<br />
<a href="http://docs.activestate.com/activeperl/5.10/install.html">http://docs.activestate.com/activeperl/5.10/install.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/03/install-activestate-perl-on-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

