<?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>CTLUG &#187; Perl</title>
	<atom:link href="http://www.supergluetech.com/wp/category/programming/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supergluetech.com/wp</link>
	<description>Cookeville TN Linux Users Group</description>
	<lastBuildDate>Thu, 10 Jun 2010 05:21:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cleaning up URL variables</title>
		<link>http://www.supergluetech.com/wp/2009/10/cleaning-up-url-variables/</link>
		<comments>http://www.supergluetech.com/wp/2009/10/cleaning-up-url-variables/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 20:22:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.supergluetech.com/wp/?p=34</guid>
		<description><![CDATA[Simple function for processing URL's]]></description>
			<content:encoded><![CDATA[<p>Heres a handy function for processing URLs &#8211; I generally use it (and a PHP version) for cases where I run a lot through a central mod_rewrite controller:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">sub</span> real_url_path <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000066;">shift</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@url_parts</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span> <span style="color: #ff0000;">'/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$url</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@real_path_parts</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">for</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$part</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">@url_parts</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;part is: $part <span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$part</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'.'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">next</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elsif</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$part</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'..'</span> <span style="color: #339933;">||</span> <span style="color: #0000ff;">$part</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'...'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066;">pop</span> <span style="color: #0000ff;">@real_path_parts</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elsif</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$part</span> <span style="color: #b1b100;">ne</span> <span style="color: #ff0000;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066;">push</span> <span style="color: #0000ff;">@real_path_parts</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$part</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$real_path</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000066;">join</span> <span style="color: #ff0000;">'/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">@real_path_parts</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$url</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'/'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000066;">length</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$real_path</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">2</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #0000ff;">$real_path</span> <span style="color: #339933;">.=</span> <span style="color: #ff0000;">'/'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066;">return</span> <span style="color: #0000ff;">$real_path</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>This sub will remove all references to &#8220;../&#8221; corrently (/path/../foo/bar becomes /foo/bar).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.supergluetech.com/wp/2009/10/cleaning-up-url-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New real-time Analytics-like logging system</title>
		<link>http://www.supergluetech.com/wp/2009/10/new-real-time-analytics-like-logging-system/</link>
		<comments>http://www.supergluetech.com/wp/2009/10/new-real-time-analytics-like-logging-system/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 18:02:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/dev/randon]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.supergluetech.com/wp/?p=24</guid>
		<description><![CDATA[A new logging system similar to Google Analytics]]></description>
			<content:encoded><![CDATA[<p>So the company I work for is considering spending over $20,000 on a new web analytics software. Out of the list of packages are Omniture, CoreMetrics, and WebTrends.</p>
<p>It is amazing that this is a niche that has not really been filled via open source offerings.. yet.</p>
<p>Say hello to PG::Stats.</p>
<p>Okay, okay&#8230; so this is NOT a finished work of art yet. But I have started a large portion of it thus far. In fact, I currently have:</p>
<ul>
<li>A standalone high-performance customized web server daemon for the data push API</li>
<li>A single perl module for the actual data insertion</li>
<li>A near-finalized table structure.</li>
</ul>
<p>The system is written purely in Perl. Theres a front-end I currently have styled and sketched out using the Catalyst framework but nothing functional on that end.</p>
<p>The database is Postgres (as apposed to MySQL) because:</p>
<ul>
<li>Postgres supports Table partitions and proper inheritance.</li>
<li>Postgres has nifty data-type such as IP Address types</li>
<li>MySQL is now owned by Oracle &#8211; need I say more?</li>
</ul>
<p>I have been thinking of turning this into a GPL&#8217;d application and setting up a subversion project on my server if enough people would be interested.</p>
<p>Gimme a shout at <a href="mailto:dean@supergluetech.com">dean@supergluetech.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.supergluetech.com/wp/2009/10/new-real-time-analytics-like-logging-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good regex for parsing apache CommonLog format</title>
		<link>http://www.supergluetech.com/wp/2009/10/good-regex-for-parsing-apache-commonlog-format/</link>
		<comments>http://www.supergluetech.com/wp/2009/10/good-regex-for-parsing-apache-commonlog-format/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 19:55:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[parse]]></category>

		<guid isPermaLink="false">http://www.supergluetech.com/wp/?p=16</guid>
		<description><![CDATA[Simple regex and snipplet for parsing apache logs]]></description>
			<content:encoded><![CDATA[<p>Been working on a custom real-time logging system (kinda like Analytics) in Perl. Anywho, this is not the first time I have needed to parse through an Apache web log to mine some sort of data out and I figured I would share the regex to get the job done.</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #339933;">/^</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\S</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\S</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\S</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span> \<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">^</span>\<span style="color: #009900;">&#93;</span>\<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #009900;">&#93;</span> \<span style="color: #ff0000;">&quot;([^&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span>\<span style="color: #ff0000;">&quot; (<span style="color: #000099; font-weight: bold;">\S</span>+) (<span style="color: #000099; font-weight: bold;">\S</span>+) <span style="color: #000099; font-weight: bold;">\&quot;</span>?([^&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span>\<span style="color: #ff0000;">&quot;? <span style="color: #000099; font-weight: bold;">\&quot;</span>([^&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span>\<span style="color: #ff0000;">&quot;/o</span></pre></div></div>

<p>Now this works fine in Perl and PHP, but I image it should be fine with any language that handles PCRE.</p>
<p>Heres a perl snipplet of how to capture the sub-patterns:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #b1b100;">my</span> <span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">$remote_ip</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$rfc931</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$authuser</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$date_time</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$request</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$status</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$bytes</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$referer</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">$user_agent</span>
<span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$2</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$3</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$4</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$5</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$6</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$7</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$8</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$9</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$method</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$url</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$protocol</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #000066;">qw</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">-</span> <span style="color: #339933;">-</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$request</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">/([a-zA-Z]*)\s(\S+)\s(HTTP\/1\.[01])/</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$method</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$url</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$protocol</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$2</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$3</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Hope that helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.supergluetech.com/wp/2009/10/good-regex-for-parsing-apache-commonlog-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple round function for Perl</title>
		<link>http://www.supergluetech.com/wp/2009/10/simple-round-function-for-perl/</link>
		<comments>http://www.supergluetech.com/wp/2009/10/simple-round-function-for-perl/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 18:27:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://www.supergluetech.com/wp/?p=5</guid>
		<description><![CDATA[A simple number rounding function for perl]]></description>
			<content:encoded><![CDATA[<p>Heres a usefull round function for Perl:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">sub</span> round <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@number</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span> <span style="color: #009966; font-style: italic;">/\./</span><span style="color: #339933;">,</span> <span style="color: #000066;">shift</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$precision</span> <span style="color: #339933;">=</span> <span style="color: #000066;">shift</span> <span style="color: #339933;">||</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">return</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">if</span> <span style="color: #339933;">!</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$decimal</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">length</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$decimal</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$precision</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">return</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #ff0000;">&quot;.&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$rounder</span> <span style="color: #339933;">=</span> <span style="color: #000066;">substr</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$precision</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$precision</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$rounder</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066;">return</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000066;">return</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$base</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #ff0000;">'.'</span><span style="color: #339933;">.</span><span style="color: #000066;">substr</span> <span style="color: #0000ff;">$number</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$precision</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$rounder</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$rounded</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'.'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'0'</span> x <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$precision</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #ff0000;">'1'</span><span style="color: #339933;">;</span>
		<span style="color: #000066;">return</span> <span style="color: #0000ff;">$base</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">$rounded</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066;">return</span> <span style="color: #0000ff;">$base</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Usage is simple:</p>
<p>round( $number, $precision );</p>
]]></content:encoded>
			<wfw:commentRss>http://www.supergluetech.com/wp/2009/10/simple-round-function-for-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
