<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>w3mentor &#187; Perl Language Basics</title>
	<atom:link href="http://w3mentor.com/learn/category/perl/perl-language-basics/feed/" rel="self" type="application/rss+xml" />
	<link>http://w3mentor.com</link>
	<description>Learning web technologies simplified!</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:16:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Namespace pollution in scripts under Apache::Registry</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/namespace-pollution-in-scripts-under-apacheregistry/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/namespace-pollution-in-scripts-under-apacheregistry/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 15:59:25 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[namespaces]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9973</guid>
		<description><![CDATA[With mod_cgi, since the script is initialized every time, the variable $required_name will always start out undefined. However, with mod_perl’s Apache::Registry, once $required_name is defined, it won’t be undefined or reinitialized, and therefore will always execute the code within the &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/namespace-pollution-in-scripts-under-apacheregistry/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/namespace-pollution-in-scripts-under-apacheregistry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iterate over environment variables in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/iterate-over-environment-variables-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/iterate-over-environment-variables-in-perl/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:56:59 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9904</guid>
		<description><![CDATA[foreach $key &#40;keys %ENV&#41; &#123; print &#34;Environment key $key is $ENV{$key}\n&#34;; &#125;]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/iterate-over-environment-variables-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Cookie Expiration Without Using the CGI Module</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/setting-cookie-expiration-without-using-the-cgi-module/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/setting-cookie-expiration-without-using-the-cgi-module/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 19:46:10 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[cookie]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9847</guid>
		<description><![CDATA[#!/usr/bin/perl -T use strict; my @monthnames = qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/; my @weekdays = qw/Sunday Monday Tuesday Wednesday Thursday Friday Saturday/; my $nextweek = time+604800; my &#40;$sec,$min,$hour,$mday,$mon,$year,$dayname,$dayofyear&#41; = gmtime&#40;$nextweek&#41;; $year += 1900; &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/setting-cookie-expiration-without-using-the-cgi-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/setting-cookie-expiration-without-using-the-cgi-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$_ in perl</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/_-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/_-in-perl/#comments</comments>
		<pubDate>Sun, 02 May 2010 23:28:59 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8934</guid>
		<description><![CDATA[The &#8220;Dollar underscore&#8221; or $_ is the default argument to the perl operators and control structures. while &#40; defined&#40; $_ = &#60;STDIN&#62; &#41; &#41; &#123; # while; a special case print $_; &#125; $_ is a normal scalar variable in &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/_-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/_-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate random numbers in perl</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/generate-random-numbers-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/generate-random-numbers-in-perl/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 21:10:34 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8429</guid>
		<description><![CDATA[We can use perl&#8217;s rand function to generate random numbers. This code generates and prints a random integer between 15 and 45, inclusive: Usage: $random = int&#40; rand&#40; $Y-$X+1 &#41; &#41; + $X; Example: $random = int&#40; rand&#40;31&#41;&#41; + 15; &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/generate-random-numbers-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/generate-random-numbers-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl Roman numerals and Arabic numerals</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/perl-roman-numerals-and-arabic-numerals/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/perl-roman-numerals-and-arabic-numerals/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 21:02:59 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8423</guid>
		<description><![CDATA[We can use the Roman module from CPAN. The Roman module provides both Roman and roman for converting Arabic (&#8220;normal&#8221;) numbers to their Roman equivalents. Roman produces uppercase letters, whereas roman gives lowercase ones. use Roman; $roman = roman&#40;$arabic&#41;; # &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/perl-roman-numerals-and-arabic-numerals/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/perl-roman-numerals-and-arabic-numerals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl decimal to binary</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/perl-decimal-to-binary/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/perl-decimal-to-binary/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 21:01:09 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[decimal]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8421</guid>
		<description><![CDATA[To convert a Perl integer to a text string of ones and zeros, first pack the integer into a number in network byte order* (the N format), then unpack it again bit by bit (the &#8220;B32&#8243; format). sub dec2bin &#123; &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/perl-decimal-to-binary/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/perl-decimal-to-binary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl binary to decimal</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/perl-binary-to-decimal/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/perl-binary-to-decimal/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 21:00:22 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8419</guid>
		<description><![CDATA[To convert a text string of ones and zeros to a Perl integer, first massage the string by padding it with the right number of zeros, then just reverse the previous procedure. sub bin2dec &#123; return unpack&#40;&#34;N&#34;, pack&#40;&#34;B32&#34;, substr&#40;&#34;0&#34; × &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/perl-binary-to-decimal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/perl-binary-to-decimal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rounding numbers in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/rounding-numbers-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/rounding-numbers-in-perl/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 20:59:00 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[integer]]></category>
		<category><![CDATA[printf]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8417</guid>
		<description><![CDATA[To round off the number we can usee sprintf. The f format lets you specify a particular number of decimal places to round its argument to. $n1 = 0.265; $n2 = sprintf&#40;&#34;%.2f&#34;, $a&#41;; print &#34;Unrounded: $n1\nRounded: $n2\n&#34;; printf &#34;Unrounded: $n1\nRounded: &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/rounding-numbers-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/rounding-numbers-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting between ASCII characters and values in perl</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/converting-between-ascii-characters-and-values-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/converting-between-ascii-characters-and-values-in-perl/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 15:06:14 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[ascii]]></category>
		<category><![CDATA[char]]></category>
		<category><![CDATA[Conversion]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8237</guid>
		<description><![CDATA[Most often developers want to print out the number represented by a given ASCII character, or print out an ASCII character given a number in perl. We can use ord function in perl to convert a character to a number, &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/converting-between-ascii-characters-and-values-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/converting-between-ascii-characters-and-values-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange variables without temporary variable in perl</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/exchange-variables-without-temporary-variable-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/exchange-variables-without-temporary-variable-in-perl/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 15:00:44 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8235</guid>
		<description><![CDATA[The most common approach to exchanging variables is to use a third temporary variable to swap content. $temp = $a; $a = $b; $b = $temp; Perl&#8217;s list offers an easy way to swap elements $a = &#34;item&#34;; $b = &#8230; <a href="http://w3mentor.com/learn/perl/perl-language-basics/exchange-variables-without-temporary-variable-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/exchange-variables-without-temporary-variable-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defined function in perl</title>
		<link>http://w3mentor.com/learn/perl/perl-language-basics/defined-function-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-language-basics/defined-function-in-perl/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 14:50:00 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[functions]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8233</guid>
		<description><![CDATA[$x = defined&#40;$y&#41; ? $y : $z;# use $y if $y is defined, else $z Note: Zero and space are considered true in defined.]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-language-basics/defined-function-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>quotemeta function in perl</title>
		<link>http://w3mentor.com/learn/other/quotemeta-function-in-perl/</link>
		<comments>http://w3mentor.com/learn/other/quotemeta-function-in-perl/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 17:09:09 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[escape]]></category>
		<category><![CDATA[functions]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8171</guid>
		<description><![CDATA[The quotemeta() function adds backslashes in front of some predefined characters in a string. These predefined characters are: * period (.) * backslash (\) * plus sign (+) * asterisk (*) * question mark (?) * brackets ([]) * caret &#8230; <a href="http://w3mentor.com/learn/other/quotemeta-function-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/other/quotemeta-function-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl documentation</title>
		<link>http://w3mentor.com/learn/other/perl-documentation/</link>
		<comments>http://w3mentor.com/learn/other/perl-documentation/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 17:06:34 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[documentation]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8168</guid>
		<description><![CDATA[Have you ever wonder where can we find information about various in-built Perl functions\subroutines? If yes then you can find the same on any of the system where Perl is installed. You will just have to use &#8216;perldoc&#8217;. But how &#8230; <a href="http://w3mentor.com/learn/other/perl-documentation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/other/perl-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command line Perl Interpreter</title>
		<link>http://w3mentor.com/learn/other/command-line-perl-interpreter/</link>
		<comments>http://w3mentor.com/learn/other/command-line-perl-interpreter/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 16:43:19 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[interpreter]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8166</guid>
		<description><![CDATA[If you want to execute a small piece of code then generally we create a &#8216;pl&#8217; file and then execute the same. But there is no need to do the same. Perl interpreter provide us with a switch &#8216;-e&#8217; which &#8230; <a href="http://w3mentor.com/learn/other/command-line-perl-interpreter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/other/command-line-perl-interpreter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scalar function in perl</title>
		<link>http://w3mentor.com/learn/other/scalar-function-in-perl/</link>
		<comments>http://w3mentor.com/learn/other/scalar-function-in-perl/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 16:18:54 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Perl Language Basics]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[scalar]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8163</guid>
		<description><![CDATA[PERL&#8217;s scalar function returns different output when used with lists. Example Using &#8216;scalar&#8217; with arrays: my @array = &#40;'a','b','c'&#41;; my $valueReturned = scalar &#40;@array&#41;; print &#34;Value Returned : $valueReturned&#34;; Output : Value Returned : 3 Example using &#8216;scalar&#8217; with lists: &#8230; <a href="http://w3mentor.com/learn/other/scalar-function-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/other/scalar-function-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: w3mentor.com @ 2012-02-07 23:17:20 -->
