<?xml version="1.0"?><!-- generator="b2evolution/0.9.1" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Forrest's Tech Blog</title>
		<link>http://www.abstractfactory.org/blogs/f_tech.php</link>
		<description>Forrest's thoughts on computer stuff</description>
		<language>en-US</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=0.9.1"/>
		<ttl>60</ttl>
				<item>
			<title>The Power of Perl</title>
			<link>http://www.abstractfactory.org/blogs/f_tech.php?title=the_power_of_perl&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Mon, 17 Apr 2006 04:16:49 +0000</pubDate>
						<category domain="alt">code</category>
<category domain="main">perl</category>			<guid isPermaLink="false">24@http://www.abstractfactory.org/blogs</guid>
			<description>Perl is a much-malingned as a write-only language by those who don't know it, but they just don't understand the power.

Here's a little anecdote which should clear things up:

In a late morning meeting at work, I learned that there was some document corruption problem which was rare and difficult to catch, which showed up in our pdf documents as a double question mark ("??").  Although I only know very little about the pdf format, I said "Oh, I bet I can write a perl program to detect that!"

When I got back to my cube, I searched CPAN for "pdf" and spent about half an hour going over my numerous pdf library choices before finally settling on CAM::PDF.


Extracting text from the pdf was then a piece of cake, and of course searching for "??" is a trivial matter for perl's famous regular expressions.

By the end of that day I had a working program.  That's the power of perl.</description>
			<content:encoded><![CDATA[	<p>Perl is a much-malingned as a <em>write-only language</em> by those who don't know it, but they just don't understand the <em>power</em>.</p>
	<p>
Here's a little anecdote which should clear things up:
</p>
	<p>
In a late morning meeting at work, I learned that there was some document corruption problem which was rare and difficult to catch, which showed up in our pdf documents as a double question mark ("??").  Although I only know very little about the pdf format, I said <em>"Oh, I bet I can write a perl program to detect that!"</em></p>
	<p>
When I got back to my cube, I <a href="http://search.cpan.org/search?query=pdf&amp;mode=all">searched CPAN for "pdf"</a> and spent about half an hour going over my numerous pdf library choices before finally settling on <a href="http://search.cpan.org/~clotho/CAM-PDF-1.06/lib/CAM/PDF.pm">CAM::PDF</a>.
</p>
	<p>
Extracting text from the pdf was then a piece of cake, and of course searching for "??" is a trivial matter for perl's famous regular expressions.
</p>
	<p>By the end of that day I had a working program.  That's the <em>power of perl</em>.
</p>
]]></content:encoded>
			<comments>http://www.abstractfactory.org/blogs/f_tech.php?p=24&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
		</item>
			</channel>
</rss>
