<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with perl</title>
      <link>http://ask.metafilter.com/tags/perl</link>
      <description>Questions tagged with 'perl' at Ask MetaFilter.</description>
	  <pubDate>Tue, 08 Dec 2009 10:39:12 -0800</pubDate> <lastBuildDate>Tue, 08 Dec 2009 10:39:12 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Too much music! I should have such a problem...</title>
	<link>http://ask.metafilter.com/140112/Too%2Dmuch%2Dmusic%2DI%2Dshould%2Dhave%2Dsuch%2Da%2Dproblem</link>	
	<description>Perl script to manage enormous, and growing, music library? First things first - I am not a programmer by any stretch of the imagination, but I do have some SQL and Perl knowledge (more SQL, less Perl). And, I&apos;m willing to learn more.&lt;br&gt;
&lt;br&gt;
The problem: 1000&apos;s of MP3 files. Some are duplicates (and triplicates) from compilation albums, some have really bad metadata. What I&apos;d like to do is run a script that will pull all the dupes into a file, so I can see how bad it is. Then, in the interest of saving space, I&apos;d like to delete all redundancies. And further, I&apos;d like to be able to manipulate the metadata - normalize such things as &amp;amp;/and, bulk-change misspellings, etc.&lt;br&gt;
&lt;br&gt;
If a tried and true script to do this sort of thing exists, can you point me to it? Thanks in advance.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.140112</guid>
	<pubDate>Tue, 08 Dec 2009 10:39:12 -0800</pubDate>
	<category>mp3s</category>
	<category>music</category>
	<category>musiclibraries</category>
	<category>perl</category>
	<category>resolved</category>
	<dc:creator>chez shoes</dc:creator>
	</item>
	<item>
	<title>PERL before swine</title>
	<link>http://ask.metafilter.com/135864/PERL%2Dbefore%2Dswine</link>	
	<description>PERL filter:  I&apos;m a PERL ignoramus and trying to run a script from &lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0596009429/metafilter-20/ref=nosim/&quot;&gt;Baseball Hacks&lt;/a&gt; to download a bunch of zipped files from retrosheet.org.    I&apos;m getting an error that says: URL must be absolute.  I can&apos;t figure out how to make the url absolute, as each file&apos;s location is different and supplied by variable  values.  Any hints would be super appreciated.  (Script is after the jump). Here&apos;s the script- copied directly from the book- I only modified the date ranges and changed the non-html-friendly characters for the purposes of posting here: &lt;br&gt;
use FileHandle;&lt;br&gt;
&lt;br&gt;
use LWP::UserAgent;&lt;br&gt;
$ua = LWP::UserAgent-&amp;gt;new;&lt;br&gt;
$baseurrl = &quot;http://www.retrosheet.org/&quot;;&lt;br&gt;
&lt;br&gt;
for ($year = 60; $year LESSTHAN= 92; $year++) {&lt;br&gt;
	foreach $league (&quot;al&quot;, &quot;nl&quot;) {&lt;br&gt;
		my $filename = &apos;19&apos; . $year . $league . &apos;.zip&apos;;&lt;br&gt;
		my $url = $baseurl . &apos;19&apos; . $year . &apos;/19&apos; . $year . $league . &apos;.zip&apos;;&lt;br&gt;
		my $req = HTTP::Request-&amp;gt;new(GET =GREATERTHAN $url);&lt;br&gt;
		my $res = $ua-GREATERTHANrequest($req);&lt;br&gt;
&lt;br&gt;
		print STDERR &quot;fetching $filename\n&quot;;&lt;br&gt;
&lt;br&gt;
		if ($res-GREATERTHANis_success) {&lt;br&gt;
			my $fh = new FileHandle &quot;GREATERTHAN$filename&quot;;&lt;br&gt;
			if (defined $fh) {&lt;br&gt;
				print $fh $res-&amp;gt;content;&lt;br&gt;
				$fh-GREATERTHANclose;&lt;br&gt;
			} else {&lt;br&gt;
				print STDERR &quot;could not open $filename: $!\n&quot;;&lt;br&gt;
			}&lt;br&gt;
		}&lt;br&gt;
		else {&lt;br&gt;
			print STDERR $res-&amp;gt;status_line, &quot;\n&quot;;&lt;br&gt;
		}&lt;br&gt;
	}&lt;br&gt;
}</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.135864</guid>
	<pubDate>Mon, 19 Oct 2009 11:23:53 -0800</pubDate>
	<category>baseball</category>
	<category>perl</category>
	<dc:creator>bluejayway</dc:creator>
	</item>
	<item>
	<title>Batch convert Word docs to text files?</title>
	<link>http://ask.metafilter.com/126981/Batch%2Dconvert%2DWord%2Ddocs%2Dto%2Dtext%2Dfiles</link>	
	<description>Batch convert Word docs to text files? Does anyone know of a utility to convert a large number of Word documents (hundreds) to text files in Windows XP? They are in Word 2003 (.doc) format. The Word docs are about a 1MB each because they have images, but the text files they turn into are only about 4KB. I want to run a text processing script I wrote in perl on them, but I&apos;m not sure how to get them in text format in the first place without opening each and converting it by hand. Looking for free solutions if possible, just because it&apos;s a pain for me to pay for software at work.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.126981</guid>
	<pubDate>Thu, 09 Jul 2009 12:29:40 -0800</pubDate>
	<category>batch</category>
	<category>conversion</category>
	<category>convert</category>
	<category>doc</category>
	<category>files</category>
	<category>formats</category>
	<category>perl</category>
	<category>text</category>
	<category>txt</category>
	<category>word</category>
	<dc:creator>yarrow</dc:creator>
	</item>
	<item>
	<title>Help me learn Perl, Python, Lisp, Haskell, Ruby</title>
	<link>http://ask.metafilter.com/126956/Help%2Dme%2Dlearn%2DPerl%2DPython%2DLisp%2DHaskell%2DRuby</link>	
	<description>Help me learn a few new programming languages. Python, Perl, Lisp, Haskell, Ruby. In college now, been programming for six or seven years already, all self-taught. I started with Java for a couple years, moved on and now consider myself fairly fluent in PHP and its friends (JavaScript, CSS, etc.). I&apos;ve been having a lot of fun with jQuery lately! And now I&apos;m stuck in a summer internship working on an ASP.NET project written in VB.&lt;br&gt;
&lt;br&gt;
I&apos;d love people&apos;s recommendations for books/resources to get started in a few high-level languages: Perl, Python, Lisp, and possibly Haskell or Ruby. I went through an O&apos;Reilly book on Perl (I believe it was &lt;a href=&quot;http://oreilly.com/catalog/9780596000271/?CMP=AFC-ak_book&amp;ATT=Programming+Perl%2c+Third+Edition%2c&quot;&gt;this one&lt;/a&gt; a couple months ago, so I have a handle on the syntax, but am not terribly capable with it.&lt;br&gt;
&lt;br&gt;
Opinions/information on which languages people would recommend (or others) and for what purposes would be incredibly helpful. Other language suggestions are welcome, as well. I don&apos;t really have reasons to learn these specific languages beyond &quot;well, I probably should know enough Python to know what it&apos;s good for, understand what&apos;s going on in Python code if I saw it, and hack something together for a basic task.&quot; I&apos;m perfectly capable of searching for tutorials/books on my own, but people&apos;s personal recommendations have that knack of knowing which ones worked and didn&apos;t for them. ;)&lt;br&gt;
&lt;br&gt;
Books/Internet resources/etc. that anyone could point me to would be awesome. Bonus points for a good crash course in Linux shell scripting.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.126956</guid>
	<pubDate>Thu, 09 Jul 2009 09:39:29 -0800</pubDate>
	<category>haskell</category>
	<category>learning</category>
	<category>lisp</category>
	<category>perl</category>
	<category>programming</category>
	<category>python</category>
	<category>resolved</category>
	<dc:creator>jgunsch</dc:creator>
	</item>
	<item>
	<title>Best language for highschool bioinformatics course?</title>
	<link>http://ask.metafilter.com/125801/Best%2Dlanguage%2Dfor%2Dhighschool%2Dbioinformatics%2Dcourse</link>	
	<description>I&apos;m teaching a course on bioinformatic programming for high schoolers. Which language should I teach it in? And do you have any nifty ideas for easy projects that fall under the bioinformatics header? It&apos;s a six-week, twice-weekly internship for highschoolers with absolutely no programming experience. The catch is, it has to be a bioinformatics course. What language would be best? I think the two contenders are Perl and Python, though I&apos;m open to other options.&lt;br&gt;
&lt;br&gt;
Possible Perl Advantages:&lt;br&gt;
&lt;br&gt;
- I know Perl, so I won&apos;t need to pick up another language and I&apos;d be better at debugging it.&lt;br&gt;
- If the kids go on to AP Comp Sci or a 101 course in college, the language is often Java. Both Perl and Java use C-style syntax.&lt;br&gt;
- The bioinformatics online support for Perl seems better than for Python.&lt;br&gt;
- Long-string manipulation and speed seem much better in Perl.&lt;br&gt;
- Though complex Perl is scary-looking, well-writen basic perl doesn&apos;t seem that intimidating.&lt;br&gt;
&lt;br&gt;
Possible Python Advantages:&lt;br&gt;
&lt;br&gt;
- Less steep learning curve.&lt;br&gt;
- Possibly more resources for beginner programmers.&lt;br&gt;
- The whitespace-is-important thing and there-is-only-one-best-way-of-doing-something thing may be better for teaching good programming techniques.&lt;br&gt;
&lt;br&gt;
Also, any basic bioinformatics projects you can think of are much appreciated. The goal is really to teach programming, but the internship requires that it be done through bioinformatic applications.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.125801</guid>
	<pubDate>Thu, 25 Jun 2009 11:22:31 -0800</pubDate>
	<category>bioinformatics</category>
	<category>highschool</category>
	<category>mylanguageisbetterthanyourlanguage</category>
	<category>perl</category>
	<category>programming</category>
	<category>python</category>
	<dc:creator>bergeycm</dc:creator>
	</item>
	<item>
	<title>Shell script handling CSV columns</title>
	<link>http://ask.metafilter.com/124463/Shell%2Dscript%2Dhandling%2DCSV%2Dcolumns</link>	
	<description>I&apos;m using a shell script to handle some excel docs by converting to csv and reformatting it a little bit. I&apos;m having some difficulty going on with the next part of the script. Some help would be great. :) CURRENT SCRIPT:&lt;br&gt;
#!/bin/sh&lt;br&gt;
ls *.xls&lt;br&gt;
echo &quot;Enter filename for excel input file: &quot;&lt;br&gt;
read filen&lt;br&gt;
xls2csv -x &quot;$filen&quot;&quot;.xls&quot; -b WINDOWS-1252 -c &quot;$filen&quot;&quot;.csv&quot; -a UTF-8&lt;br&gt;
sed &apos;1,3d&apos; &quot;$filen&quot;.csv &amp;gt;&quot;$filen&quot;_temp.csv&lt;br&gt;
cut -d &quot;,&quot; -f 1,4- &quot;$filen&quot;_temp.csv &amp;gt; &quot;$filen&quot;_temp2.csv&lt;br&gt;
awk -F, &apos;{sub($NF, &quot;&quot;);print}&apos; &quot;$filen&quot;_temp2.csv &amp;gt; &quot;$filen&quot;_temp3.csv&lt;br&gt;
sed &apos;s/.$//&apos; &quot;$filen&quot;_temp3.csv &amp;gt; &quot;$filen&quot;_fixed.csv&lt;br&gt;
rm &quot;$filen&quot;.csv&lt;br&gt;
rm &quot;$filen&quot;_temp.csv&lt;br&gt;
rm &quot;$filen&quot;_temp2.csv&lt;br&gt;
rm &quot;$filen&quot;_temp3.csv&lt;br&gt;
echo &quot;$filen&quot;&quot;.xls corrected and saved as &quot;&quot;$filen&quot;&quot;_fixed.csv&quot;&lt;br&gt;
&lt;br&gt;
EXAMPLE OUTPUT (first three lines only):&lt;br&gt;
&quot;Device ID&quot;,&quot;1) S31 Which best describes how you answered the online reading comprehension quiz?&quot;,&quot;2) S32 Which best describes how you answered the online timed retrieval quiz?&quot;,&quot;3) B19. If you want your product to be easy to find in the supermarket then you should make its container&quot;,&quot;4) C19.  So that he can shift attention between the radio and his incessantly talking girl friend when she is in the car, Joe adjusts his radio&quot;,&quot;5) B20.  Early selection is most likely to occur for&quot;,&quot;6) C20.  Early selection for a red target is most likely to occur when there is&quot;,&quot;7) B21. In a lexical decision task, when the target is a bird name, e.g. robin, it is usually preceded by the prime BODY but is sometimes preceded by the prime BIRD.&quot;,&quot;8) C21.  In a lexical decision task, when the target is a dog name, e.g. collie, it is usually preceded by the prime CAR but is sometimes preceded by the prime DOG.&quot;,&quot;9) B23. Suppose that that you see a brief display with 12 colored letters: 4 red, 4 white, and 4 blue.  At the offset of the display you hear tone.  A tone instructs you to report only the letters of a particular color: high for red, medium for white, and low for blue.  About how many letters do you report?&quot;,&quot;10) B22.  Sperling (1960) found that partial report produced the highest estimate of the number of available letters when the tone occurred &quot;,&quot;11) C23.  According to the logic of Sperling&#8217;s (1960) partial report method, an observer who reports three letters from a row in a 4 x 4 display that was cued at the display&#8217;s offset must have seen at least&quot;,&quot;12) C22.  Sperling (1960) found that the greatest difference between full and partial report in the number available of letters was when the tone occurred ____ milliseconds after the offset of the visual display&quot;&lt;br&gt;
96A39,6,4,&quot;4 c&quot;,&quot;4 c&quot;,&quot;5 c&quot;,&quot;5 c&quot;,&quot;5 c&quot;,&quot;4 i&quot;,&quot;3 c&quot;,&quot;1 c&quot;,&quot;1 i&quot;,&quot;5 i&quot;&lt;br&gt;
1E90A4,5,3,&quot;4 c&quot;,&quot;4 c&quot;,&quot;5 c&quot;,&quot;5 c&quot;,&quot;2 i&quot;,&quot;5 c&quot;,&quot;3 c&quot;,&quot;1 c&quot;,&quot;4 i&quot;,&quot;4 i&quot;&lt;br&gt;
&lt;br&gt;
First, I need to remove the numbering of the questions from the first line. So &quot;1) S31 Which best describes how you answered the online reading comprehension quiz?&quot; would become &quot;S31 Which best describes how you answered the online reading comprehension quiz?&quot;&lt;br&gt;
&lt;br&gt;
Next I need to remove an entire column if its row header doesn&apos;t begin with either B or C or is the &quot;Device ID&quot; column. For example, column starting with B19 is kept, the C23 is kept, and&quot;Device ID&quot; column is kept. The column with the question starting S31 must be entirely removed.&lt;br&gt;
&lt;br&gt;
Thanks.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124463</guid>
	<pubDate>Wed, 10 Jun 2009 16:30:20 -0800</pubDate>
	<category>bash</category>
	<category>csv</category>
	<category>excel</category>
	<category>grep</category>
	<category>linux</category>
	<category>perl</category>
	<category>regexp</category>
	<category>regularexpression</category>
	<category>script</category>
	<category>shell</category>
	<category>unix</category>
	<dc:creator>fightoplankton</dc:creator>
	</item>
	<item>
	<title>DWIM means do what I mean, dammit!</title>
	<link>http://ask.metafilter.com/117863/DWIM%2Dmeans%2Ddo%2Dwhat%2DI%2Dmean%2Ddammit</link>	
	<description>Perlfilter: I&apos;m having problems iterating over and testing for keys within a hash of hashes. Example code (apologies for the poor layout):&lt;br&gt;
&lt;br&gt;
&lt;code&gt;use strict;&lt;br&gt;
&lt;br&gt;
my %h = ( apples  =&amp;gt; {&lt;br&gt;
                        grannysmith =&amp;gt; 5,&lt;br&gt;
                        reddelicious =&amp;gt; 3&lt;br&gt;
                     },&lt;br&gt;
          oranges =&amp;gt; 2,&lt;br&gt;
          pears   =&amp;gt; 3 );&lt;br&gt;
&lt;br&gt;
print &quot;$_\n&quot; for keys %h;&lt;br&gt;
&lt;br&gt;
# problem 1&lt;br&gt;
print &quot;$_\n&quot; for keys %{%h-&amp;gt;{apples}}; # Warning: Using a hash as a reference is deprecated.&lt;br&gt;
&lt;br&gt;
# workaround&lt;br&gt;
my $h_ref = \%h;&lt;br&gt;
print &quot;$_\n&quot; for keys %{$h_ref-&amp;gt;{apples}};&lt;br&gt;
&lt;br&gt;
# problem 2&lt;br&gt;
for my $fruit ( keys %{$h_ref-&amp;gt;{apples}} ) {&lt;br&gt;
    if ( exists $fruit-&amp;gt;{reddelicious} ) {  # Error: Can&apos;t use string (&quot;grannysmith&quot;) as a HASH ref while &quot;strict refs&quot; in use at test.pl line xx&lt;br&gt;
        print &quot;Found red delicious key\n&quot;;&lt;br&gt;
    }&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
The code flagged as &lt;strong&gt;problem 1&lt;/strong&gt; returns &lt;br&gt;
grannysmith&lt;br&gt;
reddelicious&lt;br&gt;
&lt;br&gt;
but with a warning: &quot;Using a hash as a reference is deprecated.&quot;  What would the undeprecated form be?  I can make it work without the warning using the code flagged with &lt;strong&gt;workaround&lt;/strong&gt;, but I don&apos;t see why I should have to create an extra reference if I can avoid it.&lt;br&gt;
&lt;br&gt;
The code at &lt;strong&gt;problem 2&lt;/strong&gt; produces a flat-out error: &quot;Can&apos;t use string (&quot;grannysmith&quot;) as a HASH ref while &quot;strict refs&quot; in use at test.pl line xx&quot;.  What it should do (what I want it to do) is print &quot;Found red delicious key&quot;.  What am I doing wrong?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.117863</guid>
	<pubDate>Thu, 26 Mar 2009 22:00:02 -0800</pubDate>
	<category>hashref</category>
	<category>hoh</category>
	<category>perl</category>
	<category>resolved</category>
	<dc:creator>Ritchie</dc:creator>
	</item>
	<item>
	<title>Joining MP3 Files Together Based on Date in Filename?</title>
	<link>http://ask.metafilter.com/117747/Joining%2DMP3%2DFiles%2DTogether%2DBased%2Don%2DDate%2Din%2DFilename</link>	
	<description>I have a podcast that downloads as multiple segments over multiple days.  Its format arrives as YYYYMMDD_showcode_segment.mp3; so, for example, one download might result in files as 20090323_goofa_01.mp3 through 20090323_goofa_21.mp3, and also &lt;i&gt;within the same download&lt;/i&gt; 20090324_goofa_01.mp3 through 20090324_goofa_21.mp3.  What I&apos;m looking for is a Unix script (shell, perl, what have you) that would look at a directory and look at what dates are represented there, and let me join all of the segments together by day.  I can use mpgtx -j to do the actual joining; I&apos;m looking for the code that would let the script determine what dates are in the directory and then get each day&apos;s segments united into a single MP3 for that day&apos;s show.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.117747</guid>
	<pubDate>Wed, 25 Mar 2009 16:08:55 -0800</pubDate>
	<category>bash</category>
	<category>csh</category>
	<category>day</category>
	<category>group</category>
	<category>join</category>
	<category>mp3</category>
	<category>perl</category>
	<category>resolved</category>
	<category>script</category>
	<category>segment</category>
	<category>tcsh</category>
	<category>unix</category>
	<dc:creator>WCityMike</dc:creator>
	</item>
	<item>
	<title>Any perl gurus up to fix a bug in Warrick?</title>
	<link>http://ask.metafilter.com/115005/Any%2Dperl%2Dgurus%2Dup%2Dto%2Dfix%2Da%2Dbug%2Din%2DWarrick</link>	
	<description>For the good of the Underdogs, does anyone know how to fix a bug in &lt;a href=&quot;http://warrick.cs.odu.edu/warrick.html#downloading&quot;&gt;Warrick&lt;/a&gt;? First of all I asked the guy who wrote it, and he&apos;s unable to help. I&apos;m not a Perl guru, so this is a bit out of my league, so I turn to the community...&lt;br&gt;
&lt;br&gt;
I&apos;m using warrick for a rebuild of HOTU. I&apos;ve gotten a 2,000 URL&apos;s back over the past 4 days, with around 14,000 left. &lt;br&gt;
&lt;br&gt;
There seems to be a bug with Warrick&apos;s retrieval of Yahoo&apos;s cached pages, which is a shame because the yahoo cache seems to be the most complete. &lt;br&gt;
&lt;br&gt;
The error seems to be because there&apos;s an interstitial warning page before any cached results. This throws off the cache recovery and kicks out an error. &lt;br&gt;
&lt;br&gt;
Does anyone know how to fix this, hack or otherwise? Like assume that every cached yahoo page needs to be clicked through to avoid the problem?&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://uk.wrs.yahoo.com/_ylt=A0WTecw1XJ5J1SQBSuTdmMwF;_ylu=X3oDMTByNXFlNTgyBGNvbG8DZQRwb3MDMTg1BHNlYwNzcgR2dGlkAw--/SIG=18ovkfijd/EXP=1235201461/**http%3A//74.6.239.67/search/cache%3Fei=UTF-8%26appid=warrick-app-id%26format=any%26similar_ok=1%26query=site%253Awww.the-underdogs.info%26adult_ok=0%26results=100%26start=101%26u=www.the-underdogs.info/game.php%253Fid%253D1923%26d=QYDtiQ-YSQLR%26icp=1%26.intl=us&quot;&gt;Example of the warning page&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Text of the error in Warrick.&lt;br&gt;
!! The yahoo repo has a cached url for [http://www.the-underdogs.info/game.php?id=1923] -&amp;gt; [http://uk.wrs.yahoo.com/_ylt=A0WTecw1XJ5J1SQBSuTdmMwF;_ylu=X3oDMTByNXFlNTgyBGNvbG8DZQRwb3MDMTg1BHNlYwNzcgR2dGlkAw--/SIG=18ovkfijd/EXP=1235201461/**http%3A//74.6.239.67/search/cache%3Fei=UTF-8%26appid=warrick-app-id%26format=any%26similar_ok=1%26query=site%253Awww.the-underdogs.info%26adult_ok=0%26results=100%26start=101%26u=www.the-underdogs.info/game.php%253Fid%253D1923%26d=QYDtiQ-YSQLR%26icp=1%26.intl=us]&lt;br&gt;
Request generated an error (410) for [http://uk.wrs.yahoo.com/_ylt=A0WTecw1XJ5J1SQBSuTdmMwF;_ylu=X3oDMTByNXFlNTgyBGNvbG8DZQRwb3MDMTg1BHNlYwNzcgR2dGlkAw--/SIG=18ovkfijd/EXP=1235201461/**http%3A//74.6.239.67/search/cache%3Fei=UTF-8%26appid=warrick-app-id%26format=any%26similar_ok=1%26query=site%253Awww.the-underdogs.info%26adult_ok=0%26results=100%26start=101%26u=www.the-underdogs.info/game.php%253Fid%253D1923%26d=QYDtiQ-YSQLR%26icp=1%26.intl=us] on try 1 of 5.&lt;br&gt;
Sleeping for 5 minutes before trying again...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I can provide more information, partial recoveries, etcetera if it&apos;s needed...</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.115005</guid>
	<pubDate>Mon, 23 Feb 2009 23:01:51 -0800</pubDate>
	<category>bug</category>
	<category>HOTU</category>
	<category>Perl</category>
	<category>Rebuild</category>
	<category>Warrick</category>
	<dc:creator>Lord_Pall</dc:creator>
	</item>
	<item>
	<title>Help me avoid coding a lame webpage!</title>
	<link>http://ask.metafilter.com/114381/Help%2Dme%2Davoid%2Dcoding%2Da%2Dlame%2Dwebpage</link>	
	<description>I need a simple cgi-bin script that implements a scoreboard or counter for multiple teams. So a buddy of mine wants a simple web page that allows a handful of users to log in, view the scores of other teams, and increment or set their own score. For example, if you logged in as John, you might see something resembling:&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
Tim: 12&lt;br&gt;
Pete: 9&lt;br&gt;
John: 13 + -&lt;br&gt;
Luke: 10&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
The + and - above would be buttons that John could use to increment his score (or maybe it&apos;s a text box with a submit button). Basically, he&apos;s looking for something really simple (a simple Perl cgi-bin script would be fine), and security is basically a non-issue.&lt;br&gt;
&lt;br&gt;
This is something I could probably put together in perl in a couple hours, but the script he needs is state-of-the-art circa 1997, and there&apos;s really nothing that interests me beyond the fact that a friend&apos;s requested it. Besides, this has got to have been implemented before and I&apos;d rather reuse than rewrite. I did some Google searches, but came up empty. Anyone have any suggestions for something that will work out of the box, or something close that I can modify?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.114381</guid>
	<pubDate>Mon, 16 Feb 2009 17:07:18 -0800</pubDate>
	<category>cgi</category>
	<category>counter</category>
	<category>perl</category>
	<category>scoreboard</category>
	<category>web</category>
	<dc:creator>perrce</dc:creator>
	</item>
	<item>
	<title>Learning about firewalls and general computing</title>
	<link>http://ask.metafilter.com/111360/Learning%2Dabout%2Dfirewalls%2Dand%2Dgeneral%2Dcomputing</link>	
	<description>I allowed perl access past my firewall (Am I even saying that right?). Should I be worried? And how do I learn more about the subject so I&apos;m not so clueless in the future? I got a popup message on my Macbook about allowing perl access past my firewall (I think). I was downloading and installing Gnucash through Macports at the time, and I figured, must have something to do with the perl program that fetches finance quotes and prices, and I clicked &quot;Allow.&quot; Immediately after I wondered if I&apos;d made a mistake, and so I went to the firewall log and saw this:&lt;br&gt;
&lt;br&gt;
&lt;quote&gt;Jan  8 00:27:40 ***** Firewall[39]: perl is listening from 0.0.0.0:62703 uid = 0 proto=6&lt;/quote&gt;&lt;br&gt;
&lt;br&gt;
(Computer name ***ed out.) I shouldn&apos;t be worried, should I?&lt;br&gt;
&lt;br&gt;
And now that I&apos;m on the subject, I feel like I need to know more about the basics of computer technology. I get the suspicion that to many people, my above question must sound like one of those questions you come across on lists of ridiculous tech support questions, like where the &quot;any key&quot; is or whether the program &quot;Linux&quot; is supported on XP. &lt;br&gt;
&lt;br&gt;
I know perl is a program that people use (usually for network communications? right? right?) and that the 0.0.0.0 ip address probably tells someone who knows better that I have nothing to worry about. (Uh ... right?)&lt;br&gt;
&lt;br&gt;
I&apos;m not totally computer-illiterate, and I&apos;m not particularly timid when it comes to messing around (for better or for worse). I&apos;ve run Ubuntu in the past, and I spent a few days getting wireless to work with my old USB wirless adaptor using ndiswrapper, to give you some background. But ask me what a &quot;driver&quot; is and I couldn&apos;t really tell you the details, beyond the fact the fact that you need it to make hardware work. Same with &quot;firewall,&quot; &quot;ip address,&quot; &quot;perl,&quot; &quot;ssh,&quot; and so forth. &lt;br&gt;
&lt;br&gt;
Like they say, teach a man to fish and you feed him for life. I want to learn more about the fundamentals of networking security and computing in general. But how do I go about it? Where do I even start? The superficial approach has got me so far, and at the same time I&apos;m assuming that learning assembly language won&apos;t really help me here.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.111360</guid>
	<pubDate>Sun, 11 Jan 2009 09:09:46 -0800</pubDate>
	<category>computers</category>
	<category>firewall</category>
	<category>learning</category>
	<category>mac</category>
	<category>macbook</category>
	<category>perl</category>
	<category>resolved</category>
	<category>security</category>
	<category>technology</category>
	<dc:creator>dicetumbler</dc:creator>
	</item>
	<item>
	<title>Yet Another File Manager Question</title>
	<link>http://ask.metafilter.com/108257/Yet%2DAnother%2DFile%2DManager%2DQuestion</link>	
	<description>Help me find an online file manager that doesn&apos;t suck!  Everything I&apos;ve found so far falls into two categories, either (a) sucking, a lot, or (b) requiring, for inexplicable reasons, a database backend.  I just want something that will handle file uploads and basic file management (move, rename, delete, copy). The solution should &lt;b&gt;not&lt;/b&gt; try to provide any form of authentication.  This is what my web server is for!  Bonus points if it has (a) actually been touched in the past few years, (b) makes good use of CSS and (c) does a good job of separating logic and presentation in the code, because this makes my life much easier if I need to change something.  I am reasonably language neutral -- in no particular order, Python, Perl, and PHP are preferable, because those are already installed on the target system and I&apos;d like to avoid introducing any additional requirements.&lt;br&gt;
&lt;br&gt;
I am trying to avoid getting a number of non-technical people to install WinSCP, since, among other things, this means I wouldn&apos;t be able to take advantage of our web single sign-on infrastructure.  I would also like to provide people access that does not first require software installation.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.108257</guid>
	<pubDate>Tue, 02 Dec 2008 17:07:36 -0800</pubDate>
	<category>file</category>
	<category>management</category>
	<category>perl</category>
	<category>php</category>
	<category>python</category>
	<category>web</category>
	<dc:creator>larsks</dc:creator>
	</item>
	<item>
	<title>How can I automatically add tracks to the OS X iTunes Library?</title>
	<link>http://ask.metafilter.com/106827/How%2Dcan%2DI%2Dautomatically%2Dadd%2Dtracks%2Dto%2Dthe%2DOS%2DX%2DiTunes%2DLibrary</link>	
	<description>Is there a scriptable solution to add items to the OS X iTunes library? I am in the process of switching management of my iPod from my older XP desktop to my MacBook.  For a couple of years now I have been using a homegrown Perl program to download podcasts, and then running the console version of &lt;a href=&quot;http://itlu.ownz.ch/wordpress/&quot;&gt;iTunes Library Updater&lt;/a&gt; as a scheduled task to automatically add them to the iTunes library.   It&apos;s great -- works totally in the background, and when I sync my iPod everything is Just There.&lt;br&gt;
&lt;br&gt;
I&apos;d like to duplicate this process on my MacBook.  The Perl script obviously ports fine, and I can schedule it using cron, but I can&apos;t find a way to automatically add items to the iTunes library.  Some things I&apos;ve considered:&lt;br&gt;
&lt;br&gt;
-- iTLU is written in .NET, so that&apos;s out (unless it runs under mono -- but I fear that way lies madness.)  &lt;br&gt;
&lt;br&gt;
-- At &lt;a href=&quot;http://dougscripts.com/itunes/&quot;&gt;Doug&apos;s Applescripts&lt;/a&gt;, the suggested solution is to &lt;a href=&quot;http://dougscripts.com/itunes/itinfo/folderaction01.php&quot;&gt;add a folder action&lt;/a&gt; to the folder you want to watch.  However, my understanding is that folder actions only work if the folder is actively being worked with in the Finder (open, having things dropped on it, etc.), so adding files to my podcast folder behind the scenes won&apos;t trigger a folder action. &lt;br&gt;
&lt;br&gt;
-- There&apos;s a Mac::iTunes module on CPAN, but it looks pretty unfinished (for instance, under &quot;Bugs&quot; for Mac::iTunes::Library::Write it says &quot;just wait&quot;.)  &lt;br&gt;
 &lt;br&gt;
This is for a MacBook running Leopard.  Any suggestions?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.106827</guid>
	<pubDate>Fri, 14 Nov 2008 14:05:26 -0800</pubDate>
	<category>applescript</category>
	<category>iTLU</category>
	<category>itunes</category>
	<category>ituneslibraryupdater</category>
	<category>mac</category>
	<category>osx</category>
	<category>Perl</category>
	<category>podcast</category>
	<category>resolved</category>
	<dc:creator>harkin banks</dc:creator>
	</item>
	<item>
	<title>Regex crisis...</title>
	<link>http://ask.metafilter.com/105597/Regex%2Dcrisis</link>	
	<description>Regular Expressions / PHP preg_replace problem. Can this be made to work...? I&apos;ve got a long string of text that will contain something like this...&lt;br&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;lt;container&amp;gt;aa&amp;lt;alpha&amp;gt;t&amp;lt;/alpha&amp;gt;bb&amp;lt;beta&amp;gt;i&amp;lt;/beta&amp;gt;dd&amp;lt;/container&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
I want to have a nice little bit of regex that plucks the &apos;t&apos; from alpha and the &apos;i&apos; from beta. In itself okay. Except I want it to match correctly if it finds&lt;br&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;lt;container&amp;gt;aa&amp;lt;beta&amp;gt;i&amp;lt;/beta&amp;gt;bb&amp;lt;alpha&amp;gt;t&amp;lt;/alpha&amp;gt;dd&amp;lt;/container&amp;gt;&lt;/code&gt;&lt;br&gt;
and for it to get what it can if someone misses a field, like this...&lt;br&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;lt;container&amp;gt;aa&amp;lt;alpha&amp;gt;t&amp;lt;/alpha&amp;gt;bb&amp;lt;/container&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
My basic knowledge of regexes suggests the following &lt;i&gt;should&lt;/i&gt; have worked, but as you can guess from my question, it doesn&apos;t.&lt;br&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;@&amp;lt;container&amp;gt;([^&amp;lt;&amp;gt;]*)((&amp;lt;alpha&amp;gt;(.*?)&amp;lt;/alpha&amp;gt;)|(&amp;lt;beta&amp;gt;(.*?)&amp;lt;/beta&amp;gt;)|(^&amp;lt;&amp;gt;]*?))*([^&amp;lt;&amp;gt;]*)&amp;lt;/container&amp;gt;@mi&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Help...?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.105597</guid>
	<pubDate>Thu, 30 Oct 2008 10:02:04 -0800</pubDate>
	<category>perl</category>
	<category>php</category>
	<category>regex</category>
	<dc:creator>twine42</dc:creator>
	</item>
	<item>
	<title>Perl &amp;amp; mod_fcgid- how can I make sure it&apos;s running &amp;amp; being taken advantage of?</title>
	<link>http://ask.metafilter.com/104247/Perl%2Dand%2Dmodfcgid%2Dhow%2Dcan%2DI%2Dmake%2Dsure%2Dits%2Drunning%2Dand%2Dbeing%2Dtaken%2Dadvantage%2Dof</link>	
	<description>I have a couple Perl scripts I&apos;m publishing soon, and I want to make sure they&apos;ll run under mod_fcgid in order to keep the server load as low as possible. Previously, I&apos;ve only ever run scripts that test FastCGI (ie, while ( my $q = new CGI::Fast ) { $count++; echo $count;}) or taken advantage of larger Perl packages (like MovableType) that claim to run as FCGI as long as you set up Apache &amp;amp; FastCGI/mod_fcgid properly and change the file suffix to &quot;.fcgi&quot;.

So, here&apos;s my question: do I need to do anything besides change the file suffix of my scripts, and if so, what?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.104247</guid>
	<pubDate>Tue, 14 Oct 2008 13:13:01 -0800</pubDate>
	<category>fastcgi</category>
	<category>mod_fcgid</category>
	<category>perl</category>
	<dc:creator>paul_smatatoes</dc:creator>
	</item>
	<item>
	<title>How can I load (and sort) a really huge text file in Perl?</title>
	<link>http://ask.metafilter.com/103795/How%2Dcan%2DI%2Dload%2Dand%2Dsort%2Da%2Dreally%2Dhuge%2Dtext%2Dfile%2Din%2DPerl</link>	
	<description>How do I load and then sort a really huge (94 MB) text file list of words?  Perl runs out of memory trying to load all the lines-- before I have a chance to try to sort it. My text file contains a list of words, one per line.  I&apos;d like to sort this list into alphabetical order (and then ultimately traverse the sorted list to easily parse out all of the non-unique tokens).  Here is what I was doing in Perl:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&lt;br&gt;
open LARGELIST, &quot;large_source_file.txt&quot; or die $!;&lt;br&gt;
print &quot;Loading file...\n&quot;;&lt;br&gt;
@lines = [LARGELIST];&lt;br&gt;
print &quot;Done&quot;;&lt;br&gt;
@sorted = sort(@lines);&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
(The brackets around LARGELIST are supposed to be the less-than and greater-than signs, but that would get stripped out in AskMeFi for looking like an HTML tag.)&lt;br&gt;
&lt;br&gt;
After chugging for a while, perl runs out of memory while at the loading-file stage.  I&apos;m definitely not a Perl guru, so is there a more memory-efficient way I should do this (or is there some entirely different approach/language I should be trying)?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.103795</guid>
	<pubDate>Wed, 08 Oct 2008 22:06:49 -0800</pubDate>
	<category>code</category>
	<category>perl</category>
	<category>programming</category>
	<category>resolved</category>
	<category>sort</category>
	<dc:creator>kosmonaut</dc:creator>
	</item>
	<item>
	<title>uploading/downloading huge files</title>
	<link>http://ask.metafilter.com/100132/uploadingdownloading%2Dhuge%2Dfiles</link>	
	<description>How to code a Perl web app to upload/download HUGE files? A straight HTTP upload/download for my app is untenable because I&apos;m dealing with files of hundreds of megs each. I&apos;d like to see a solution that would offer progress bars, and (more importantly) the ability to restart incomplete uploads or downloads.&lt;br&gt;
&lt;br&gt;
The existing app is Apache 1.3/mod_perl/perl 5.8. Uploads require a login; downloads don&apos;t, but are limited inasmuch as they&apos;re keyed by UUIDs that are only considered valid in a short time-window. (I don&apos;t want the downloaders to see the real filename or location, but I suppose could make a link named for the UUID that gets deleted after its valid lifetime if I pursue an FTPish solution.)&lt;br&gt;
&lt;br&gt;
I&apos;m open to ditching doing the uploading and downloading in the browser if need be and requiring users to install client software to upload/download, but the download solution would need to be simple, easy, and available for all of Windows, Mac, and Linux. The upload solution would need to be simple and available for Windows.&lt;br&gt;
&lt;br&gt;
But ideally, something AJAXy on the client-side and Perl (or plays-well-with-Perl) on the server-side can save the day and allow me to stick with the browser. I haven&apos;t done anything like this before. Anyone have any suggestions?&lt;br&gt;
&lt;br&gt;
(3d-party hosting isn&apos;t an option.)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.100132</guid>
	<pubDate>Tue, 26 Aug 2008 08:10:28 -0800</pubDate>
	<category>ajax</category>
	<category>http</category>
	<category>huge</category>
	<category>perl</category>
	<category>upload</category>
	<dc:creator>Zed_Lopez</dc:creator>
	</item>
	<item>
	<title>How do I make simple dynamic web pages using perl?</title>
	<link>http://ask.metafilter.com/99862/How%2Ddo%2DI%2Dmake%2Dsimple%2Ddynamic%2Dweb%2Dpages%2Dusing%2Dperl</link>	
	<description>How should I develop simple dynamic web pages using perl?  

Does anyone have any suggestions on how best to produce simple web pages in perl that execute logic (e.g., opening property documents to retrieve property values and saving back changes). 

I am new to perl and would like some detail instructions or links to tutorials. Would a framework like Mason be overkill? </description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.99862</guid>
	<pubDate>Fri, 22 Aug 2008 09:24:58 -0800</pubDate>
	<category>perl</category>
	<category>scripting</category>
	<category>web</category>
	<dc:creator>zzztimbo</dc:creator>
	</item>
	<item>
	<title>Need a replacement for formmail.pl</title>
	<link>http://ask.metafilter.com/99168/Need%2Da%2Dreplacement%2Dfor%2Dformmailpl</link>	
	<description>What is a proven contemporary replacement for formmail.pl? I am about to drag some websites created in 1997 into 2008. These websites use formmail.pl to capture information from input forms and email it off to someone.&lt;br&gt;
&lt;br&gt;
After I strip all of the Claris Homepage tags out of the HTML (!), I&apos;ll need something to capture the information, write it to a file, and periodically email that file. The host computer is an Intel Xserve managed by me, and is running OS X Server 10.5.3, so I have Apache, Perl, MySQL, and PHP at my disposal. The pages are simple HTML, but can be converted to PHP if necessary.&lt;br&gt;
&lt;br&gt;
OSS is preferred, but I will pay for a solution. I&apos;m mostly an interface/admin guy, so writing my own Perl script just ain&apos;t gonna happen. I&apos;m looking for a plug, tweak, and play solution.&lt;br&gt;
&lt;br&gt;
Any recommendations?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.99168</guid>
	<pubDate>Thu, 14 Aug 2008 08:02:41 -0800</pubDate>
	<category>formmail</category>
	<category>html</category>
	<category>os</category>
	<category>perl</category>
	<category>php</category>
	<category>server</category>
	<category>x</category>
	<dc:creator>the matching mole</dc:creator>
	</item>
	<item>
	<title>Live AIS data is a web browser</title>
	<link>http://ask.metafilter.com/98913/Live%2DAIS%2Ddata%2Dis%2Da%2Dweb%2Dbrowser</link>	
	<description>Hi,
Another oddball question... I have a live data stream of AIS data and I would like to take the data and ultimately display it on a world map through a web browser. The problem is that I have no clue as to how I would display live updated information on a map. 
I would like the map to update as the stream of data is coming in. This might be an ambitious project for someone who is weak on web programming, but i figured it would be worth looking into.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.98913</guid>
	<pubDate>Mon, 11 Aug 2008 10:55:58 -0800</pubDate>
	<category>AIS</category>
	<category>Computer</category>
	<category>Maritime</category>
	<category>perl</category>
	<category>php</category>
	<category>programming</category>
	<category>web</category>
	<dc:creator>kaozity</dc:creator>
	</item>
	<item>
	<title>Computer languages considered in linguistic contexts?</title>
	<link>http://ask.metafilter.com/97673/Computer%2Dlanguages%2Dconsidered%2Din%2Dlinguistic%2Dcontexts</link>	
	<description>Computer languages considered in linguistic contexts? I&apos;ve volunteered to give a talk about computer languages, for an audience which is primarily interested in linguistics, not computers.&lt;br&gt;
&lt;br&gt;
One thing I&apos;m definitely going to be talking about is Perl, which is unusual among computer languages in that, for instance, it has &quot;pronouns&quot;. For more detail, see Larry Wall&apos;s &quot;&lt;a href=&quot;http://www.wall.org/~larry/natural.html&quot;&gt;Natural Language Principles In Perl&lt;/a&gt;&quot;. Wall deliberately went against the grain of language construction, it seems to me, in that he didn&apos;t aim for perfection or concision, whereas most language creators would seem to be aiming for something more like a &lt;a href=&quot;http://en.wikipedia.org/wiki/Philosophical_language&quot;&gt;Philosophical Language&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Another example of a correlation -- I read in Pinker&apos;s &quot;The Language Instinct&quot; that English only has one first-person plural, &quot;we&quot;, but other languages have more than one, which distinguish between &quot;only you and I&quot;, &quot;you and I and some other people&quot;, &quot;some other people and I but not you&quot; etc. Could that be considered analogous to &quot;strong typing&quot; in a computer language, where you can&apos;t have a variable be a number at one point, then a text string at another point?&lt;br&gt;
&lt;br&gt;
I&apos;m just looking for any interesting resources, links, opinions, ideas on the subject.&lt;br&gt;
&lt;br&gt;
It&apos;s not an academic audience, and I don&apos;t have to rise to the standard of a formal lecture, just to be interesting. And I know more about the computer side than the linguistics side, so go easy on me if you&apos;re a linguist.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97673</guid>
	<pubDate>Sun, 27 Jul 2008 22:43:42 -0800</pubDate>
	<category>computerlanguages</category>
	<category>larrywall</category>
	<category>lingustics</category>
	<category>perl</category>
	<category>strongtyping</category>
	<dc:creator>AmbroseChapel</dc:creator>
	</item>
	<item>
	<title>Can I write to a div using Perl, or otherwise solve my form submission problem?</title>
	<link>http://ask.metafilter.com/97424/Can%2DI%2Dwrite%2Dto%2Da%2Ddiv%2Dusing%2DPerl%2Dor%2Dotherwise%2Dsolve%2Dmy%2Dform%2Dsubmission%2Dproblem</link>	
	<description>Can I write to a div using Perl, or otherwise solve my form submission problem? I have a Perl/CGI form mailer script that I didn&apos;t write and shouldn&apos;t edit too much, but can somewhat.&lt;br&gt;
&lt;br&gt;
It&apos;s currently set up so that I can define the thank you page and error page within the Perl file. I don&apos;t want it to redirect to those pages however. I want to display the messages on the page the form is on instead, without reloading if possible. I played around with redirecting to the same page  but appending a parameter in the URL. Then using JS to show a div if that var was set. But I&apos;m realizing I need to display some of the items  submitted from the form and I don&apos;t know how to keep those values since the page is being refreshed.&lt;br&gt;
&lt;br&gt;
I don&apos;t know Perl so I don&apos;t know if there is a better way to do this, but can I do something like write to a div with Perl? Other ideas?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97424</guid>
	<pubDate>Thu, 24 Jul 2008 12:11:10 -0800</pubDate>
	<category>cgi</category>
	<category>forms</category>
	<category>javascript</category>
	<category>perl</category>
	<category>scripts</category>
	<category>web</category>
	<dc:creator>unsigned</dc:creator>
	</item>
	<item>
	<title>need a library for text classification</title>
	<link>http://ask.metafilter.com/97052/need%2Da%2Dlibrary%2Dfor%2Dtext%2Dclassification</link>	
	<description>I need to be able to automatically identify language (English, Japaneese, Russian, etc ... ) in which a particular blog-post has been written. (lang attribute might or might not be available). Few years ago I came across a library for RSS feeds that was doing roughly what I need - can not find it anymore though.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97052</guid>
	<pubDate>Sun, 20 Jul 2008 16:17:29 -0800</pubDate>
	<category>blog</category>
	<category>feed</category>
	<category>language</category>
	<category>library</category>
	<category>locale</category>
	<category>perl</category>
	<category>python</category>
	<category>rss</category>
	<dc:creator>chexov</dc:creator>
	</item>
	<item>
	<title>Make Apache recognize Perl!</title>
	<link>http://ask.metafilter.com/92575/Make%2DApache%2Drecognize%2DPerl</link>	
	<description>How can I get my web server to interpret perl I am playing around with perl for the first time in my life. I am using a fedora core 8 machine. It seems to ave all the essentials installed already (apache, php, mySQL, and perl). However, I make a file called perl.pl and it does not seem to translate correctly. Here is what is in the file:&lt;br&gt;
&lt;br&gt;
#!/usr/bin/perl&lt;br&gt;
&lt;br&gt;
print &quot;Content-type: text/html \n\n&quot;; #HTTP HEADER&lt;br&gt;
&lt;br&gt;
# DEFINE SOME SCALAR VARIABLES&lt;br&gt;
$number = &quot;5&quot;;&lt;br&gt;
$exponent = &quot;2 ** 8&quot;;&lt;br&gt;
$string = &quot;Hello, PERL!&quot;;&lt;br&gt;
$stringpart_1 = &quot;Hello, &quot;;&lt;br&gt;
$stringpart_2 = &quot;PERL!&quot;;&lt;br&gt;
$linebreak = &quot;&lt;br&gt;&quot;; #HTML LINEBREAK TAG&lt;br&gt;
&lt;br&gt;
# PRINT THEM TO THE BROWSER&lt;br&gt;
print $number;&lt;br&gt;
print $linebreak;&lt;br&gt;
print $exponent;&lt;br&gt;
print $linebreak;&lt;br&gt;
print $string.$linebreak;&lt;br&gt;
print $stringpart_1.$stringpart_2;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
When you go the the browser, you see the following&lt;br&gt;
http://[ip address]/perl/perl.pl&lt;br&gt;
&lt;br&gt;
As you can see, you prints out exactly what I type. Am I doing anything wrong? Am I suppose to enable a perl service or change a configuration file?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92575</guid>
	<pubDate>Wed, 28 May 2008 05:49:15 -0800</pubDate>
	<category>computer</category>
	<category>internet</category>
	<category>perl</category>
	<category>programming</category>
	<category>web</category>
	<category>www</category>
	<dc:creator>kaozity</dc:creator>
	</item>
	<item>
	<title>Redirecting users by IP in Apache</title>
	<link>http://ask.metafilter.com/91212/Redirecting%2Dusers%2Dby%2DIP%2Din%2DApache</link>	
	<description>How do I redirect incoming website visitors to an external site by IP address? I&apos;m the general sysadmin here and don&apos;t do much web stuff other than simple content updating, but I think I&apos;m on the right track with adding this bit of mod_rewrite code to the end of the httpd.conf file...&lt;br&gt;
&lt;br&gt;
&lt;ifmodule&gt;&lt;br&gt;
RewriteEngine on&lt;br&gt;
RewriteCond %{REMOTE_ADDR} ^12\.345\.678\.9$&lt;br&gt;
RewriteCond %{REQUEST_URI} ^/index.php$ [NC]&lt;br&gt;
RewriteRule ^/(.*) http://test.foo.com/$1 [R]&lt;br&gt;
&lt;/ifmodule&gt;&lt;br&gt;
&lt;br&gt;
Any ideas why this isn&apos;t working?&lt;br&gt;
&lt;br&gt;
(apache 1.3.33 on OS X)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.91212</guid>
	<pubDate>Mon, 12 May 2008 13:16:56 -0800</pubDate>
	<category>apache</category>
	<category>perl</category>
	<category>webmaster</category>
	<category>worldwideweb</category>
	<category>www</category>
	<dc:creator>Oktober</dc:creator>
	</item>
	
	</channel>
</rss>

