<?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>India Perl &#124; Perl Programmer &#124; Perl Programming &#124; Perl Tutorials &#124; Programming in Perl &#124; Latest Version of Perl </title>
	<atom:link href="http://www.indiaperl.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.indiaperl.org</link>
	<description>India Perl &#124; Perl Programmer &#124; Perl Programming &#124; Perl Tutorials &#124; Programming in Perl &#124; Latest Version of Perl</description>
	<lastBuildDate>Thu, 03 Feb 2011 05:56:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Numbers and Strings in Perl</title>
		<link>http://www.indiaperl.org/2011/02/02/78615/using-numbers-and-strings-in-perl/index.html</link>
		<comments>http://www.indiaperl.org/2011/02/02/78615/using-numbers-and-strings-in-perl/index.html#comments</comments>
		<pubDate>Thu, 03 Feb 2011 05:56:47 +0000</pubDate>
		<dc:creator>Contributor</dc:creator>
				<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[indiaperl]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=15</guid>
		<description><![CDATA[




 In Perl, numbers and strings are called scalars. Scalars that do not change during the lifetime of a program are known as constants or literals. Scalars that do change are known as variables. Operators do something with scalars, for example, add together the contents of two variables.
Literals/Constants
There are two types of literal:
* numeric literals, [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>In Perl, numbers and strings are called scalars. Scalars that do not change during the lifetime of a program are known as constants or literals. Scalars that do change are known as variables. Operators do something with scalars, for example, add together the contents of two variables.</p>
<p>Literals/Constants</p>
<p>There are two types of literal:</p>
<p>* numeric literals, for example, 6, 8.5, 11, 17.678, and so on, and<br />
* string literals, for example, &#8220;hello world&#8221;.</p>
<p>Numeric literals may be integers, for example, 6, floating point, for example, 12.5, or scientific notation, for example, 2e10. Strings are a sequence of characters, for example, goodbye cruel world.</p>
<p>Scalar Variables</p>
<p>Data that may change during the lifetime of a program is stored in variables, for example, $total. The dollar ($) sign is called a type identifier, and tells Perl that the variable contains scalar data.</p>
<p>Variable names can contain alphanumeric characters (a-z, A-Z, and 0-9) and the underscore character, and are case-sensitive.</p>
<p>Expressions and Operators</p>
<p>Perl programs are collections of expressions and statements that, by default, are executed in the order in which they appear in the program.</p>
<p>1. #!/usr/bin/perl -w<br />
2. $radius=10;<br />
3. $pi=3.1415927;<br />
4. $area=$pi*($radius**2);<br />
5. print $area;</p>
<p>The equals sign (=) is known as the assignment operator. It takes the value on its right-hand side, and puts it in the variable on the left. The star (*) is the multiplication operator. Two stars together (**) indicate &#8216;to the power of&#8217;.</p>
<p>Another example:</p>
<p>1. $a=&#8221;Goodbye&#8221;;<br />
2. $b=&#8221;cruel world&#8221;;<br />
3. $c=$a.$b;<br />
4. print $c;</p>
<p>The dot (.) concatenates the contents of variables $a and $b, and the result is put into variable $c.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2011/02/02/78615/using-numbers-and-strings-in-perl/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2011/02/02/78615/using-numbers-and-strings-in-perl/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Compound Interest Calculator in Perl</title>
		<link>http://www.indiaperl.org/2011/01/16/78614/create-a-compound-interest-calculator-in-perl/index.html</link>
		<comments>http://www.indiaperl.org/2011/01/16/78614/create-a-compound-interest-calculator-in-perl/index.html#comments</comments>
		<pubDate>Sun, 16 Jan 2011 12:54:03 +0000</pubDate>
		<dc:creator>Contributor</dc:creator>
				<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[indiaperl]]></category>
		<category><![CDATA[Calculator]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=14</guid>
		<description><![CDATA[




 Open a text editor, for example, NotePad, and enter the following lines of code:
#!/usr/bin/perl -w
print &#8220;Monthly deposit: &#8220;; # prompt for input
$deposit=; # get input from keyboard
chomp $deposit; # remove the newline character from the end of the variable
print &#8220;Interest rate (3, 4, 5.5, etc): &#8220;; # prompt for input
$interest=; # get input from [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>Open a text editor, for example, NotePad, and enter the following lines of code:</p>
<p>#!/usr/bin/perl -w</p>
<p>print &#8220;Monthly deposit: &#8220;; # prompt for input<br />
$deposit=; # get input from keyboard<br />
chomp $deposit; # remove the newline character from the end of the variable</p>
<p>print &#8220;Interest rate (3, 4, 5.5, etc): &#8220;; # prompt for input<br />
$interest=; # get input from keyboard<br />
chomp $interest; # remove the newline character from the end of the variable</p>
<p># Change interest from 3, 4, 5, etc to .03, .04, .05, etc<br />
$interest=$interest*.01;</p>
<p># Change interest to a monthly multiplier<br />
$interest=$interest/12;</p>
<p>print &#8220;No of months: &#8220;; # prompt for input<br />
$nMonths=; # get input from keyboard<br />
chomp $nMonths; # remove the newline character from the end of the variable</p>
<p># The interest calculation<br />
$total=$deposit * (((1 + $interest) ** $nMonths) -1 ) / $interest;</p>
<p>print &#8220;After $nMonths months you will have a total amount of $total&#8221;;</p>
<p>(Note: the spaces on either side of STDIN are for display purposes only in this article. In your script, you can omit them.)</p>
<p>Save the script as interest.pl. Make a note of the directory/folder where you have saved it.</p>
<p>Running the script</p>
<p>You need to run the script from a command line prompt, so open a terminal window/MS-DOS prompt. Change to the directory/folder where the interest.pl file is located, and type the following command:</p>
<p>perl interest.pl</p>
<p>When prompted, enter the monthly deposit, interest rate, and the number of months that the money is deposited.</p>
<p>Error messages</p>
<p>If the script did not work, you probably received one of the following error messages:</p>
<p>* &#8216;Bad command or filename&#8217; or &#8216;command not found&#8217;. This means that Perl has not been added to the PATH variable. See your operating system help/documentation for information on how to fix this problem.<br />
* &#8216;Can&#8217;t open perl script interest.pl: A file or directory does not exist&#8217;. This probably means that you are not in the folder/directory where you saved the script, in which case you should change to the correct location.<br />
* If you get a syntax error, it probably means you have mis-typed the contents of the file. Open the file and fix any mistakes.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2011/01/16/78614/create-a-compound-interest-calculator-in-perl/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2011/01/16/78614/create-a-compound-interest-calculator-in-perl/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Perl Can Do For Your Website</title>
		<link>http://www.indiaperl.org/2010/12/20/78613/what-perl-can-do-for-your-website/index.html</link>
		<comments>http://www.indiaperl.org/2010/12/20/78613/what-perl-can-do-for-your-website/index.html#comments</comments>
		<pubDate>Mon, 20 Dec 2010 09:37:01 +0000</pubDate>
		<dc:creator>Contributor</dc:creator>
				<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[indiaperl]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Perl programming language]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=13</guid>
		<description><![CDATA[




 Perl programming language is a language which is ideal solution for creating dynamic web pages and also has the ability to perform system management task. Released in 1987, it was designed to provide efficiency and simplicity. There are many benefits in using Perl and this article will elaborate on that.
The first thing that comes [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>Perl programming language is a language which is ideal solution for creating dynamic web pages and also has the ability to perform system management task. Released in 1987, it was designed to provide efficiency and simplicity. There are many benefits in using Perl and this article will elaborate on that.</p>
<p>The first thing that comes to mind is its effectiveness in providing cleaner code. With the new Perl 5, codes are far more readable than before. Cryptic variables can now be replaced by mnemonic identifiers. Error messages that you get is even more informative and understandable. This is a great help for new webmasters and developers.</p>
<p>The library in the Perl 5 is defined in modules. This can be shared between various packages. All users need to do is just import them. It can be done on a single module or the entire module. Furthermore, the same action can be done with pragmas and compiler directives. This programming language is also very object-orientated. It supports dynamic inheritance and virtual methods in a very straightforward way. There is a little need for syntax and the packages can be used as file handlers can be treated as an object.</p>
<p>With the ability to be embedded into C or C++ applications, Perl 5 is high compatibility and extensibility. It has a IX processor that can allow users to easily paste C or C+ routines into a framework. This is supported by dynamic module loading. Therefore, Perl itself can act as a dynamic library. One of its latest modules POSIX provides access to all available POSIX definitions and routine through objects when users need them. Therefore, it is POSIX compliant.</p>
<p>Additional features of Perl are it can simultaneously access DBM, GDBM, NDBM and SDBM from the same script. It has a DBMOpen interface which can allow any variables to connect to an object class that recognizes its access method. It also possesses auto subroutine upload function that allows users to define arbitrary semantics for any routine call which is not defined.</p>
<p>In addition, it also allows users to write regular expressions complete with embedded whitespace for better visual experience. It also has lexical scoping that is similar to auto variables in the C language but more efficient and provides better privacy.</p>
<p>All and all, users will be able to enjoy all this just by downloading it from the free software package at the Perl official website or get a web hosting service that comes with it.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2010/12/20/78613/what-perl-can-do-for-your-website/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2010/12/20/78613/what-perl-can-do-for-your-website/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Features of Perl Language</title>
		<link>http://www.indiaperl.org/2010/12/03/78612/features-of-perl-language/index.html</link>
		<comments>http://www.indiaperl.org/2010/12/03/78612/features-of-perl-language/index.html#comments</comments>
		<pubDate>Sat, 04 Dec 2010 05:50:18 +0000</pubDate>
		<dc:creator>Contributor</dc:creator>
				<category><![CDATA[Perl 5]]></category>
		<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[indiaperl]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=12</guid>
		<description><![CDATA[




 The overall structure of Perl derives broadly from C. Perl is procedural in nature, with variables, expressions, assignment statements, brace-delimited blocks, control structures, and subroutines.
Perl also takes features from shell programming. All variables are marked with leading sigils, which unambiguously identify the data type (for example, scalar, array, hash) of the variable in context. [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>The overall structure of Perl derives broadly from C. Perl is procedural in nature, with variables, expressions, assignment statements, brace-delimited blocks, control structures, and subroutines.</p>
<p>Perl also takes features from shell programming. All variables are marked with leading sigils, which unambiguously identify the data type (for example, scalar, array, hash) of the variable in context. Importantly, sigils allow variables to be interpolated directly into strings. Perl has many built-in functions that provide tools often used in shell programming (although many of these tools are implemented by programs external to the shell) such as sorting, and calling on system facilities.</p>
<p>Perl takes lists from Lisp, hashes (&#8220;associative arrays&#8221;) from AWK, and regular expressions from sed. These simplify and facilitate many parsing, text-handling, and data-management tasks.</p>
<p>Perl 5 added features that support complex data structures, first-class functions (that is, closures as values), and an object-oriented programming model. These include references, packages, class-based method dispatch, and lexically scoped variables, along with compiler directives (for example, the strict pragma). A major additional feature introduced with Perl 5 was the ability to package code as reusable modules. Larry Wall later stated that &#8220;The whole intent of Perl 5&#8217;s module system was to encourage the growth of Perl culture rather than the Perl core.&#8221;</p>
<p>All versions of Perl do automatic data-typing and automatic memory-management. The interpreter knows the type and storage requirements of every data object in the program; it allocates and frees storage for them as necessary using reference counting (so it cannot deallocate circular data structures without manual intervention). Legal type-conversions — for example, conversions from number to string — are done automatically at run time; illegal type conversions are fatal errors.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2010/12/03/78612/features-of-perl-language/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2010/12/03/78612/features-of-perl-language/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux, Apache, Mysql, PHP, and Perl</title>
		<link>http://www.indiaperl.org/2010/10/20/78610/linux-apache-mysql-php-and-perl/index.html</link>
		<comments>http://www.indiaperl.org/2010/10/20/78610/linux-apache-mysql-php-and-perl/index.html#comments</comments>
		<pubDate>Thu, 21 Oct 2010 06:38:23 +0000</pubDate>
		<dc:creator>Contributor</dc:creator>
				<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[indiaperl]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=10</guid>
		<description><![CDATA[




 With all of the available web hosting plans, now is the time to start building sites whether your goal is fun, education, profit or all of the above. The days of plain static HTML sites is past. Today&#8217;s servers feature access to programming languages and database capability to provide dynamic web pages with just [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>With all of the available web hosting plans, now is the time to start building sites whether your goal is fun, education, profit or all of the above. The days of plain static HTML sites is past. Today&#8217;s servers feature access to programming languages and database capability to provide dynamic web pages with just a little bit of coding. You may have run across a new word, lampp. Lampp is an acronym for Linux, Apache, Mysql, PHP, and Perl. Keep reading to see why these words are important to you.</p>
<p>L &#8211; The Linux operating system, open source, fast and flexible, and constantly being approved<br />
A &#8211; The Apache web server, the framework for your website<br />
M &#8211; Mysql &#8211; the most popular open source database<br />
P &#8211; PHP &#8211; a flexible scripting language that makes it easy to create dynamic web pages<br />
P &#8211; Perl &#8211; the old standby language of the web, excellent for text manipulation and data analysis</p>
<p>An excellent example of the use of lampp is the blogging software, WordPress. It is also a case study in the success of the open source community. Beginning with some simple code in 2003, it has evolved into a sophisticated blogging and content management system through the efforts of thousands of volunteer contributors. Today there are hundreds of available plugins (add in features to increase the flexibility, performance, and ease of administration of your blog) and and an almost infinite number of easily loaded themes to change the total look of your site with the click of the mouse.</p>
<p>Software is also available to produce database driven niche sites. It is easy to template sites to display complete catalogs of products with descriptions,available options, images, and just about any thing else you might desire.</p>
<p>All this capability may be overwhelming. It is reassuring to know that you can construct full featured sites offline. Xampp can be downloaded from their site and installed on a windows computer in just a few minutes. With it on your home computer, you can create databases,try out several content management systems, experiment with themes, and see just how easy it is to work with databases. All this without worrying about the search engines finding and displaying the mistakes that go with your early education efforts. If you don&#8217;t want to be a geek, that&#8217;s OK. Just try some of the open source blogging and content management systems to see how easy and simple it is to build and maintain web sites.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2010/10/20/78610/linux-apache-mysql-php-and-perl/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2010/10/20/78610/linux-apache-mysql-php-and-perl/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Perl For Your Website</title>
		<link>http://www.indiaperl.org/2010/08/30/7869/using-perl-for-your-website/index.html</link>
		<comments>http://www.indiaperl.org/2010/08/30/7869/using-perl-for-your-website/index.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 12:36:13 +0000</pubDate>
		<dc:creator>Contributor</dc:creator>
				<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=9</guid>
		<description><![CDATA[




 Perl programming language is a language which is ideal solution for creating dynamic web pages and also has the ability to perform system management task. Released in 1987, it was designed to provide efficiency and simplicity. There are many benefits in using Perl and this article will elaborate on that.
The first thing that comes [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>Perl programming language is a language which is ideal solution for creating dynamic web pages and also has the ability to perform system management task. Released in 1987, it was designed to provide efficiency and simplicity. There are many benefits in using Perl and this article will elaborate on that.</p>
<p>The first thing that comes to mind is its effectiveness in providing cleaner code. With the new Perl 5, codes are far more readable than before. Cryptic variables can now be replaced by mnemonic identifiers. Error messages that you get is even more informative and understandable. This is a great help for new webmasters and developers.</p>
<p>The library in the Perl 5 is defined in modules. This can be shared between various packages. All users need to do is just import them. It can be done on a single module or the entire module. Furthermore, the same action can be done with pragmas and compiler directives. This programming language is also very object-orientated. It supports dynamic inheritance and virtual methods in a very straightforward way. There is a little need for syntax and the packages can be used as file handlers can be treated as an object.</p>
<p>With the ability to be embedded into C or C++ applications, Perl 5 is high compatibility and extensibility. It has a IX processor that can allow users to easily paste C or C+ routines into a framework. This is supported by dynamic module loading. Therefore, Perl itself can act as a dynamic library. One of its latest modules POSIX provides access to all available POSIX definitions and routine through objects when users need them. Therefore, it is POSIX compliant.</p>
<p>Additional features of Perl are it can simultaneously access DBM, GDBM, NDBM and SDBM from the same script. It has a DBMOpen interface which can allow any variables to connect to an object class that recognizes its access method. It also possesses auto subroutine upload function that allows users to define arbitrary semantics for any routine call which is not defined.</p>
<p>In addition, it also allows users to write regular expressions complete with embedded whitespace for better visual experience. It also has lexical scoping that is similar to auto variables in the C language but more efficient and provides better privacy.</p>
<p>All and all, users will be able to enjoy all this just by downloading it from the free software package at the Perl official website or get a web hosting service that comes with it.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2010/08/30/7869/using-perl-for-your-website/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2010/08/30/7869/using-perl-for-your-website/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>India Perl : Using Perl and Regular Expressions</title>
		<link>http://www.indiaperl.org/2009/12/17/7868/india-perl-using-perl-and-regular-expressions/index.html</link>
		<comments>http://www.indiaperl.org/2009/12/17/7868/india-perl-using-perl-and-regular-expressions/index.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 15:57:49 +0000</pubDate>
		<dc:creator>Contributor</dc:creator>
				<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[indiaperl]]></category>
		<category><![CDATA[Regular Expressions]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=8</guid>
		<description><![CDATA[




 Like many web content authors, over the past few years I&#8217;ve had many occasions when I&#8217;ve needed to clean up a bunch of HTML files that have been generated by a word processor or publishing package. Initially, I used to clean up the files manually, opening each one in turn, and making the same [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>Like many web content authors, over the past few years I&#8217;ve had many occasions when I&#8217;ve needed to clean up a bunch of HTML files that have been generated by a word processor or publishing package. Initially, I used to clean up the files manually, opening each one in turn, and making the same set of updates to each one. This works fine when you only have a few files to fix, but when you have hundreds or even thousands to do, you can very quickly be looking at weeks or even months of work. A few years ago someone put me on to the idea of using Perl and regular expressions to perform this &#8216;cleaning up&#8217; process.</p>
<p>The Goal</p>
<p>When converting documents into HTML the goal is always to achieve a seamless conversion from the source document (for example, a word processor document) to HTML. The last thing you need is for your content authors to be spending hours, or even days, fixing untidy HTML code after it has been converted.</p>
<p>Many applications offer excellent tools for converting documents to HTML and, in combination with a well designed cascading style sheet (CSS), can often produce perfect results. Sometimes though, there are little bits of HTML code that are a bit messy, normally caused by authors not applying paragraph tags or styles correctly in the source document.</p>
<p>Why Perl?</p>
<p>The reason why Perl is such a good language to use for this task is because it is excellent at processing text files, which let&#8217;s face it, is all HTML files are. Perl is also the de facto standard for the use of regular expressions, which you can use to search for, and replace/change, bits of text or code in a file.</p>
<p>What is Perl?</p>
<p>Perl (Practical Extraction and Report Language) is a general purpose programming language, which means it can be used to do anything that any other programming language can do. Having said that, Perl is very good at doing certain things, and not so good at others. Although you could do it, you wouldn&#8217;t normally develop a user interface in Perl as it would be much easier to use a language like Visual Basic to do this. What Perl is really good at, is processing text. This makes it a great choice for manipulating HTML files.</p>
<p>What is a Regular Expression?</p>
<p>A regular expression is a string that describes or matches a set of strings, according to certain syntax rules. Regular expressions are not unique to Perl &#8211; many languages, including JavaScript and PHP can use them &#8211; but Perl handles them better than any other language.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2009/12/17/7868/india-perl-using-perl-and-regular-expressions/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2009/12/17/7868/india-perl-using-perl-and-regular-expressions/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl Programming : Installing Perl</title>
		<link>http://www.indiaperl.org/2009/07/11/7866/perl-programming-installing-perl/index.html</link>
		<comments>http://www.indiaperl.org/2009/07/11/7866/perl-programming-installing-perl/index.html#comments</comments>
		<pubDate>Sat, 11 Jul 2009 13:31:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Perl 5]]></category>
		<category><![CDATA[Perl Programming]]></category>
		<category><![CDATA[indiaperl]]></category>
		<category><![CDATA[Installing Perl]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=6</guid>
		<description><![CDATA[




 To use the Perl programming language you must install a Perl interpreter. Depending on the operating system you are using, it is possible that the interpreter may be already installed. To see whether it is installed, go to a command prompt and enter:
perl -v
If you get a message like &#8216;command not found&#8217; or &#8216;Bad [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>To use the Perl programming language you must install a Perl interpreter. Depending on the operating system you are using, it is possible that the interpreter may be already installed. To see whether it is installed, go to a command prompt and enter:</p>
<p>perl -v</p>
<p>If you get a message like &#8216;command not found&#8217; or &#8216;Bad command or file name&#8217;, it means that the interpreter is not installed or the path of the interpreter has not been added to the system (environment) variable (in Windows).</p>
<p>If it is installed, its version number along with a few other bits of information will be printed (displayed on the screen).</p>
<p>Installing Perl on Windows</p>
<p>ActiveState Tool Corp provides a self-installing Perl distribution. You can download and install this from the ActiveState.com website.</p>
<p>Make sure that the location of the interpreter is added to the path variable (in environment variables), which is accessible via the Control Panel.</p>
<p>Installing Perl on Unix</p>
<p>You can download Perl from the perl.com website. Make sure that you download the &#8217;stable&#8217; or &#8216;production&#8217; version and not a version that is still being developed and tested.</p>
<p>Installing Perl on a Macintosh</p>
<p>You can download and install Perl for a Macintosh from the perl.com website.</p>
<p>Documentation</p>
<p>With every installation, you get a full copy of the latest version of the documentation. Once the software is installed, you can access the documentation from the command line by entering the following command:</p>
<p>perldoc perl</p>
<p>You may also be able to access an HTML version of the documentation, which you can view in a browser. For a Windows installation, this would typically be found at C:Perlhtmlindex.html.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2009/07/11/7866/perl-programming-installing-perl/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2009/07/11/7866/perl-programming-installing-perl/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OptiPerl is a Fully-Integrated Perl Developing Solution&#8221;</title>
		<link>http://www.indiaperl.org/2007/07/26/7865/optiperl-is-a-fully-integrated-perl-developing-solution/index.html</link>
		<comments>http://www.indiaperl.org/2007/07/26/7865/optiperl-is-a-fully-integrated-perl-developing-solution/index.html#comments</comments>
		<pubDate>Fri, 27 Jul 2007 06:58:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OptiPerl]]></category>
		<category><![CDATA[indiaperl]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=5</guid>
		<description><![CDATA[




 OptiPerl will help you create CGI &#038; console scripts in Perl, offline in Windows. It is a fully integrated visual developing environment and editor for creating, testing, debugging and running perl scripts, directly or through associated html documents.
Features include:
* Offline editing of Perl scripts in IDE.
* Complete emulation of a real server &#8211; scripts [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>OptiPerl will help you create CGI &#038; console scripts in Perl, offline in Windows. It is a fully integrated visual developing environment and editor for creating, testing, debugging and running perl scripts, directly or through associated html documents.</p>
<p>Features include:</p>
<p>* Offline editing of Perl scripts in IDE.<br />
* Complete emulation of a real server &#8211; scripts can be run indirectly from html documents.<br />
* Live preview of the scripts in the internal web browser.<br />
* Feature packed editor with syntax highlighting.<br />
* Completely integrated debugging with live evaluation of expressions, watches, breakpoints, flow control.<br />
Remote debugging of scripts located on your web server.<br />
* Code completion, and hints while programming.<br />
Automatic syntax checking.<br />
* Box and line coding give a better view of your code.<br />
* Saveable desktops.<br />
* Code librarian that supports ZIP files and code templates.<br />
* Context sensitive help on core perl and module documentation.<br />
* Powerful query editor to create the environment and data sent when calling CGI scripts.<br />
* Many tools like URL Encoder, Perl Printer, Pod Viewer and others.<br />
* Projects to organize and publish a set of scripts.<br />
* Version converter to handle non supported perl functions in windows.<br />
* Opening, saving and running scripts on remote servers.<br />
* Printing script and exporting as HTML with syntax highlighting.<br />
* Searching and replacing with regular expressions in projects and files.<br />
* Extremely versatile user tools. You can create perl code to integrate with the editor. CVS support.<br />
* File and FTP explorer.</p>
<p>Why should you buy this program? Consider the following:</p>
<p>OptiPerl is a great learning tool. You can use it to learn Perl and CGI programming in the comfort of a visual editor, without loss of time and money because of loading from dos perl or being for hours on the internet.</p>
<p>So if you program for hobby or want to introduce yourself in a pleasant way to CGI programming, OptiPerl is for you.</p>
<p>Professionals designing perl programs and cgi scripts use it. You can save much time by quickly creating, debugging and testing all the ideas you have increasing productivity.</p>
<p>For novice or advanced users, for hobby or professional use, OptiPerl is bundled with all the tools you need to make CGI in Perl Programming easy!
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2007/07/26/7865/optiperl-is-a-fully-integrated-perl-developing-solution/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2007/07/26/7865/optiperl-is-a-fully-integrated-perl-developing-solution/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s Wrong with Perl 5</title>
		<link>http://www.indiaperl.org/2007/07/18/7864/whats-wrong-with-perl-5/index.html</link>
		<comments>http://www.indiaperl.org/2007/07/18/7864/whats-wrong-with-perl-5/index.html#comments</comments>
		<pubDate>Thu, 19 Jul 2007 05:07:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Perl 5]]></category>
		<category><![CDATA[indiaperl]]></category>

		<guid isPermaLink="false">http://www.indiaperl.org/?p=4</guid>
		<description><![CDATA[




 Perl 5 isn&#8217;t perfect, though, and some of its flaws are more apparent the closer Perl 6 comes to completion.
Perhaps the biggest imperfection of Perl 5 is its internals. Though much of the design is clever, there are also places of
obsolescence and interdependence, as well as optimizations that no one remembers, but no one [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4630710538321097";
/* Post Ads */
google_ad_slot = "0443546771";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> <p>Perl 5 isn&#8217;t perfect, though, and some of its flaws are more apparent the closer Perl 6 comes to completion.</p>
<p>Perhaps the biggest imperfection of Perl 5 is its internals. Though much of the design is clever, there are also places of</p>
<p>obsolescence and interdependence, as well as optimizations that no one remembers, but no one can delete without affecting too</p>
<p>many other parts of the system. Refactoring an eleven-plus-year-old software project that runs on seventy-odd platforms and</p>
<p>has to retain backwards compatibility with itself on many levels is daunting, and there are few people qualified to do it.</p>
<p>It&#8217;s also exceedingly difficult to recruit new people for such a task.</p>
<p>Backwards compatibility in general hampers Perl 5 in other ways. Even though stability of interface and behavior is good in</p>
<p>many ways, baking in an almost-right idea makes it difficult to sell people on the absolutely right idea later, especially if</p>
<p>it takes years to discover what the true solution really is. For example, the long-deprecated and long-denigrated pseudohash</p>
<p>feature was, partly, a way to improve object orientation. However, the Perl 6 approach (using opaque objects) solves the same</p>
<p>problem without introducing the complexity and performance problems that pseudohashes did.</p>
<p>As another example, it&#8217;s much too late to remove formats from Perl 5 without breaking backwards compatibility from Perl 1.</p>
<p>However, using formats requires the use of global variables (or scary trickery), with all of the associated maintainability</p>
<p>and encapsulation problems.</p>
<p>This points to one of the most subtle flaws of Perl 5: its single implementation is its specification. Certainly there is a</p>
<p>growing test suite that explores Perl&#8217;s behavior in known situations, but too many of these tests exist to ensure that no one</p>
<p>accidentally breaks an obscure feature of a particular implementation that no one really thought about but someone somewhere</p>
<p>relies on in an important piece of code. You could recreate Perl from its tests&#8211;after a fashion.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.indiaperl.org/2007/07/18/7864/whats-wrong-with-perl-5/index.html&#038;layout=standard&#038;show_faces=true&#038;width=450&#038;height=65&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.indiaperl.org/2007/07/18/7864/whats-wrong-with-perl-5/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

