<?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>Free Linux Tools &#187; Libraries</title>
	<atom:link href="http://linuxproducts.net/free/libraries/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxproducts.net</link>
	<description></description>
	<lastBuildDate>Fri, 06 Mar 2009 22:05:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hash::Case 1.005</title>
		<link>http://linuxproducts.net/hashcase-1005-745.html</link>
		<comments>http://linuxproducts.net/hashcase-1005-745.html#comments</comments>
		<pubDate>Wed, 18 Jun 2008 10:52:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Libraries]]></category>
		<category><![CDATA[hash case]]></category>

		<guid isPermaLink="false">http://www.linuxproducts.org/hashcase-1005-743.html</guid>
		<description><![CDATA[CLASS HIERARCHYHash::Caseis a Tie::StdHashis a Tie::HashSYNOPSISuse Hash::Case::Lower;tie my(%lchash), &#8216;Hash::Case::Lower&#8217;;$lchash{StraNGeKeY} = 3;print keys %lchash; # strangekeyHash::Case is the base class for various classes which tie special treatment for the casing of keys. Be aware of the differences in implementation: Lower and Upper are tied native hashes: these hashes have no need for hidden fields or other [...]]]></description>
			<content:encoded><![CDATA[<p><strong>CLASS HIERARCHY<br itxtvisited="1" /><br itxtvisited="1" /></strong>Hash::Case<br itxtvisited="1" />is a Tie::StdHash<br itxtvisited="1" />is a Tie::Hash<br itxtvisited="1" /><br itxtvisited="1" /><strong itxtvisited="1">SYNOPSIS</strong><br itxtvisited="1" /><br itxtvisited="1" />use Hash::Case::Lower;<br itxtvisited="1" />tie my(%lchash), &#8216;Hash::Case::Lower&#8217;;<br itxtvisited="1" />$lchash{StraNGeKeY} = 3;<br itxtvisited="1" />print keys %lchash; # strangekey<br itxtvisited="1" /><br itxtvisited="1" />Hash::Case is the base class for various classes which tie special treatment for the casing of keys. Be aware of the differences in implementation: Lower and Upper are tied native hashes: these hashes have no need for hidden fields or other assisting data structured. A case Preserve hash will actually create three hashes.<br itxtvisited="1" /><br itxtvisited="1" />The following strategies are implemented:<br itxtvisited="1" /><br itxtvisited="1" />Hash::Case::Lower (native hash) <br itxtvisited="1" /><br itxtvisited="1" />Keys are always considered lower case. The internals of this module translate any incoming key to lower case before it is used.<br itxtvisited="1" /><br itxtvisited="1" />Hash::Case::Upper (native hash) <br itxtvisited="1" /><br itxtvisited="1" />Like the ::Lower, but then all keys are always translated into upper case. This module can be of use for some databases, which do translate everything to capitals as well. To avoid confusion, you may want to have you own internal Perl hash do this as well.<br itxtvisited="1" /><br itxtvisited="1" />Hash::Case::Preserve <br itxtvisited="1" /><br itxtvisited="1" />The actual casing is ignored, but not forgotten.<br itxtvisited="1" /><br itxtvisited="1" /><strong itxtvisited="1">METHODS</strong><br itxtvisited="1" /><br itxtvisited="1" />tie HASH, TIE, [VALUES,] OPTIONS<br itxtvisited="1" /><br itxtvisited="1" />Tie the HASH with the TIE package which extends Hash::Case. The OPTIONS differ per implementation: read the manual page for the package you actually use. The VALUES is a reference to an array containing key-value pairs, or a reference to a hash: they fill the initial hash.<br itxtvisited="1" /><br itxtvisited="1" /><strong itxtvisited="1">Examples:</strong><br itxtvisited="1" /><br itxtvisited="1" />my %x;<br itxtvisited="1" />tie %x, &#8216;Hash::Case::Lower&#8217;;<br itxtvisited="1" />$x{Upper} = 3;<br itxtvisited="1" />print keys %x; # &#8216;upper&#8217;<br itxtvisited="1" /><br itxtvisited="1" />my @y = (ABC =&gt; 3, DeF =&gt; 4);<br itxtvisited="1" />tie %x, &#8216;Hash::Case::Lower&#8217;, @y;<br itxtvisited="1" />print keys %x; # &#8216;abc&#8217; &#8216;def&#8217;<br itxtvisited="1" /><br itxtvisited="1" />my %z = (ABC =&gt; 3, DeF =&gt; 4);<br itxtvisited="1" />tie %x, &#8216;Hash::Case::Lower&#8217;, %z;<br itxtvisited="1" />addPairs PAIRS<br itxtvisited="1" /><br itxtvisited="1" />Specify an even length list of alternating key and value to be stored in the hash.<br itxtvisited="1" /><br itxtvisited="1" />addHashData HASH<br itxtvisited="1" /><br itxtvisited="1" />Add the data of a hash (passed as reference) to the created tied hash. The existing values in the hash remain, the keys are adapted to the needs of the the casing.<br itxtvisited="1" /><br itxtvisited="1" />setHash HASH<br itxtvisited="1" /><br itxtvisited="1" />The functionality differs for native and wrapper hashes. For native hashes, this is the same as first clearing the hash, and then a call to addHashData. Wrapper hashes will use the hash you specify here to store the data, and re-create the mapping hash.<br itxtvisited="1" /><br itxtvisited="1" /><span itxtvisited="1" style="color: green"><strong itxtvisited="1">Requirements:</strong></span><br itxtvisited="1" /><br itxtvisited="1" />· <strong itxtvisited="1"><a target="_blank" href="http://linux.softpedia.com/get/Programming/Interpreters/Perl-1177.shtml">Perl</a></strong><br itxtvisited="1" /></p>
<p><a target="_blank" href="http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/Hash-Case-1.005.tar.gz" onmouseout="status=''" style="font-weight: bold; font-size: 14px" onmouseover="status=''; return true;">Sources mirror 1 (tar.gz)</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxproducts.net/hashcase-1005-745.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
