<?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>Fri, 15 Mar 2013 03:39:17 -0800</pubDate> <lastBuildDate>Fri, 15 Mar 2013 03:39:17 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Using grep to extract x characters of text after a predictable pattern</title>
	<link>http://ask.metafilter.com/237257/Using%2Dgrep%2Dto%2Dextract%2Dx%2Dcharacters%2Dof%2Dtext%2Dafter%2Da%2Dpredictable%2Dpattern</link>	
	<description>I&apos;m trying to work out how to use something like grep or sed or awk (or maybe even some Perl) to extract a string of characters which appears in a predictable place in a series of text files. Help/advice/tutorials very welcome! I have a number of text files in a Google Drive folder, which gets replicated on my Mac, and a new one gets added every day. The files are plain text and they aren&apos;t structured formally (as in, they&apos;re not XML or anything) but they each contain a certain string (&quot;Total Portfolio Value&quot;) which is always followed by a space, followed by &quot;$xx,xxx.xx&quot;, followed by five more spaces. The value of $xx,xxx.xx changes every day, and that&apos;s what I&apos;m trying to extract, to put into a separate file.&lt;br&gt;
&lt;br&gt;
I can use Automator to check whenever a new file appears and run a shell script on the file, so I&apos;m trying to work out what goes in the shell script.&lt;br&gt;
&lt;br&gt;
As much as anything else I&apos;m using this as a practical exercise to teach myself a bit about text processing using grep/sed/awk, Perl and regular expressions (any/all of the above!) so just a few pointers about the best approach the contents of the shell script would be great!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2013:site.237257</guid>
	<pubDate>Fri, 15 Mar 2013 03:39:17 -0800</pubDate>
	<category>grep</category>
	<category>perl</category>
	<category>programming</category>
	<category>regex</category>
	<category>scripting</category>
	<dc:creator>infinitejones</dc:creator>
	</item>
	<item>
	<title>How to solve a complex statistics problem with a script?</title>
	<link>http://ask.metafilter.com/230075/How%2Dto%2Dsolve%2Da%2Dcomplex%2Dstatistics%2Dproblem%2Dwith%2Da%2Dscript</link>	
	<description>In this game, you roll a number of six-sided dice to get a &lt;strong&gt;total&lt;/strong&gt;. The total is either the highest single die result, or the sum of any multiples rolled, whichever is higher.

For example: If I roll three dice and get a 3, 4, and 6, my total is 6. But if I roll a 4, 4, and 6, my total is 8, the sum of the two 4s.

What I want to find out is the mean, median, mode, and standard deviation of the possible totals given N dice. How might I create a simple script to compute this? With two or three dice, I can easily figure this out by listing all the possible results, basically by brute force. But that&apos;s a pretty labor-intensive method when it comes to four or more dice.&lt;br&gt;
&lt;br&gt;
I have a Macintosh, and I&apos;m comfortable using the Unix command line and several programming languages for simple problems, but I&apos;m not even sure where to start automating something like this. I&apos;d be grateful for any guidance.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2012:site.230075</guid>
	<pubDate>Fri, 30 Nov 2012 18:26:42 -0800</pubDate>
	<category>bash</category>
	<category>d6</category>
	<category>deviation</category>
	<category>dice</category>
	<category>JavaScript</category>
	<category>js</category>
	<category>math</category>
	<category>mean</category>
	<category>median</category>
	<category>mode</category>
	<category>perl</category>
	<category>PHP</category>
	<category>probability</category>
	<category>programming</category>
	<category>ruby</category>
	<category>standard</category>
	<category>statistics</category>
	<category>unix</category>
	<dc:creator>j0hnpaul</dc:creator>
	</item>
	<item>
	<title>How to get perl to connect to mysql using DBD:mysql</title>
	<link>http://ask.metafilter.com/229513/How%2Dto%2Dget%2Dperl%2Dto%2Dconnect%2Dto%2Dmysql%2Dusing%2DDBDmysql</link>	
	<description>I&apos;m over my head again trying to run a program for a class and you were a great help last time. I&apos;m trying to connect to mysql from Perl and have installed DBD:mysql on my Mac (OS X 10.5.8). I have no idea what I&apos;m doing. Can you help? I get the following error whenever I try to run my perl test script:&lt;br&gt;
&lt;br&gt;
dyld: lazy symbol binding failed: Symbol not found: _mysql_init&lt;br&gt;
  Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle&lt;br&gt;
  Expected in: dynamic lookup&lt;br&gt;
&lt;br&gt;
dyld: Symbol not found: _mysql_init&lt;br&gt;
  Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle&lt;br&gt;
  Expected in: dynamic lookup&lt;br&gt;
&lt;br&gt;
Trace/BPT trap&lt;br&gt;
&lt;br&gt;
All instructions posted for the class are for Windows and I am lost.  I googled this error but all the answers I found are over-my-head computer speak. I rarely do more than the most basic commands in the terminal, so I have no idea where to even begin to know what might be wrong. Can you help me? Let me know what other information I can provide.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2012:site.229513</guid>
	<pubDate>Fri, 23 Nov 2012 12:00:18 -0800</pubDate>
	<category>mysql</category>
	<category>perl</category>
	<category>resolved</category>
	<dc:creator>sunshine37</dc:creator>
	</item>
	<item>
	<title>What IT conferences should I budget this year?</title>
	<link>http://ask.metafilter.com/212609/What%2DIT%2Dconferences%2Dshould%2DI%2Dbudget%2Dthis%2Dyear</link>	
	<description>What IT/programming/technology type conferences should I try to go to this year (June 2012 - June 2013)? I have to come up with a list of 3 by Thursday for my manager! I&apos;m primarily a software developer who also does some OS X and SUSE Linux Enterprise Server management, and a little bit of Oracle administration (for a vendor app we use; most of my stuff stores its data in MySQL). What language I&apos;m using on any given day depends on what platform I&apos;m developing for:&lt;br&gt;
&lt;br&gt;
OS X: C/Objective-C; perl for quick tasks&lt;br&gt;
Linux: PHP, Java, and some Ruby on Rails; perl and bash for quick tasks&lt;br&gt;
Windows: C# and some straight C/C++ with the bare Win32 API&lt;br&gt;
&lt;br&gt;
A lot of what I write are &quot;glue&quot; or &quot;integration&quot; programs that help tie our various vendor apps together.&lt;br&gt;
&lt;br&gt;
So beyond the obvious (WWDC), where should I go? In previous years I&apos;ve been to YAPC and ApacheCon. I tried to go to RubyConf but missed the registration deadline (miscommunications on my part). I&apos;ve been doing a lot of WordPress related stuff this year so a WP internals conference would be dandy (how to write plugins well). Also, if there&apos;s some good Oracle training that would be beneficial.&lt;br&gt;
&lt;br&gt;
Budget is ~$3000 for registration, hotel, and travel. I work in Higher Education so anything with a bent towards that is good. Other than Oracle, the training type conferences where it&apos;s &quot;Here&apos;s how to write programs in X language&quot; don&apos;t interest me because I&apos;m a good enough programmer to pickup any language I need to in short time. WRT language conferences I&apos;m more interested in &quot;Here&apos;s a framework you should be using. Here&apos;s major changes that are upcoming. Etc.&quot;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2012:site.212609</guid>
	<pubDate>Tue, 10 Apr 2012 16:50:01 -0800</pubDate>
	<category>conferences</category>
	<category>IT</category>
	<category>oracle</category>
	<category>perl</category>
	<category>php</category>
	<category>rails</category>
	<category>ruby</category>
	<category>rubyonrails</category>
	<dc:creator>The Supreme Dominar</dc:creator>
	</item>
	<item>
	<title>Convert text with whitespace to csv</title>
	<link>http://ask.metafilter.com/210968/Convert%2Dtext%2Dwith%2Dwhitespace%2Dto%2Dcsv</link>	
	<description>perl or sed or awk help for newbie I am trying to get my tax preparation done and so I need to get info into Moneydance. One of my credit card accounts does not give ofx downloads, just pdfs of the monthly account summaries, and I have managed to extract the text from the pdfs and I now need to transform the text into csv format to import it. I have roughly a thousand transactions to process. I have MacOS 10.7 and can use the terminal but no regex skills.&lt;br&gt;
&lt;br&gt;
The text is currently formatted as&lt;br&gt;
&lt;br&gt;
MMM DD MMM DD PAYEE INFORMATION CITY PROVINCE&lt;br&gt;
TRANSACTIONNUMBER COMMENT&lt;br&gt;
$AMOUNT&lt;br&gt;
&lt;br&gt;
and here is an example of two records&lt;br&gt;
&lt;br&gt;
DEC 19 DEC 21 RADIO PARADISE 530&#xaf;872&#xaf;4993 CA&lt;br&gt;
85450930354980007961385 Foreign Currency&#xaf;USD 20.00 Exchange rate&#xaf;1.046500&lt;br&gt;
$20.93&lt;br&gt;
DEC 23 DEC 24 SUNTERRA LENDRUM MA CALGARY AB&lt;br&gt;
55181360357461606795546&lt;br&gt;
$101.45&lt;br&gt;
&lt;br&gt;
How can I transform this to a csv file such as&lt;br&gt;
&lt;br&gt;
MMM DD, MMM DD, PAYEE INFORMATION CITY PROVINCE, TRANSACTIONNUMBER COMMENT, AMOUNT&lt;br&gt;
&lt;br&gt;
which I can import into my financial software?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2012:site.210968</guid>
	<pubDate>Tue, 20 Mar 2012 12:32:21 -0800</pubDate>
	<category>awk</category>
	<category>bankstatement</category>
	<category>csv</category>
	<category>pdf</category>
	<category>perl</category>
	<category>resolved</category>
	<category>sed</category>
	<category>text</category>
	<dc:creator>v-tach</dc:creator>
	</item>
	<item>
	<title>Perl one-liner help</title>
	<link>http://ask.metafilter.com/210466/Perl%2Doneliner%2Dhelp</link>	
	<description>Perl one-liner help - increment a number in a find-replace situation starting at a specific number? Here&apos;s my one-liner:&lt;br&gt;
&lt;br&gt;
perl -p -i -e &apos;s/msdata:rowOrder=\&quot;[0-9]*\&quot;/&quot;msdata:rowOrder=\&quot;$1&quot;.(++$i).&quot;\&quot;&quot;/ge&apos; file.xml&lt;br&gt;
&lt;br&gt;
This finds all the rows in &lt;strong&gt;file.xml&lt;/strong&gt; with the text &lt;strong&gt; msdata:rowOrder=&quot;18&quot;&lt;/strong&gt; and replaces the number in quotes incrementally throughout the file with 1, 2, 3, etc.,&lt;br&gt;
&lt;br&gt;
How can I modify this so that I can specify the start number (i.e., start at 1000, then 1001, 1002, etc.,)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2012:site.210466</guid>
	<pubDate>Tue, 13 Mar 2012 19:33:14 -0800</pubDate>
	<category>code</category>
	<category>one-liner</category>
	<category>perl</category>
	<category>resolved</category>
	<dc:creator>odinsdream</dc:creator>
	</item>
	<item>
	<title>How to deal with Chinese in a Perl program on a mac</title>
	<link>http://ask.metafilter.com/198446/How%2Dto%2Ddeal%2Dwith%2DChinese%2Din%2Da%2DPerl%2Dprogram%2Don%2Da%2Dmac</link>	
	<description>Working with Chinese and English text, in a Perl programme, on a Mac.  I feel like an idiot. I need to write a Perl programme on my mac to shuffle some Chinese sentences.  None of Aquamacs, TextEdit, Pages or Word seems to provide support.  Googling unicode support provides a tsunami of information that doesn&apos;t seem to help.&lt;br&gt;
&lt;br&gt;
Listing the various combinations I have tried would be a monument only to human doggedness and stupidity. They all result in any combination of files in which the Chinese is corrupt, files which Perl thinks are binary and illegal, files which terminal thinks are binary, or similar.&lt;br&gt;
&lt;br&gt;
To summarize the challenge, If I could do the following, I would be happy:&lt;br&gt;
&lt;br&gt;
/usr/bin/perl -w&lt;br&gt;
&lt;br&gt;
$string = &quot;&#20004;&#20010;&#33402;&#26415;&#23478;&#20132;&#25442;&#20102;&#31614;&#21517;&#12290;&quot;;&lt;br&gt;
&lt;br&gt;
print $string, &quot;\n&quot;;&lt;br&gt;
&lt;br&gt;
Any suggestions?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.198446</guid>
	<pubDate>Fri, 14 Oct 2011 02:35:01 -0800</pubDate>
	<category>chinese</category>
	<category>emacs</category>
	<category>mac</category>
	<category>perl</category>
	<category>unicode</category>
	<dc:creator>stonepharisee</dc:creator>
	</item>
	<item>
	<title>Find me (or create me) a crash course in Semantic Web...</title>
	<link>http://ask.metafilter.com/197904/Find%2Dme%2Dor%2Dcreate%2Dme%2Da%2Dcrash%2Dcourse%2Din%2DSemantic%2DWeb</link>	
	<description>Can you find me an online (?) course giving me the essentials of the following alphabet soup of Semantic Web related... things? XML, XHTML, CSS, RDF, OWL, JSON, SPARQL, one of JAVA, Perl, Python etc... I&apos;m trying to find some sort of curriculum I can follow, preferably online, with some worked examples / projects / interactive tutorials, that will give me a grasp of the essential nuts and bolt of XML, XHTML, CSS, RDF, OWL, JSON, SPARQL, one of JAVA, Perl, Python etc...&lt;br&gt;
&lt;br&gt;
Yes, I&apos;m aware that these are all different kinds of things (apart from having impressive-sounding acronyms/odd names).&lt;br&gt;
&lt;br&gt;
I&apos;m trying to get a solid grounding in the important technologies in my (fairly obscure) field without actually taking a full-time masters course. OPen to the idea of doing *some* sort of formal course though, ideally free but could be a few hundred GBP if it leads to formal accreditation.&lt;br&gt;
&lt;br&gt;
Timescale is about a year, with a couple of hours per week to invest, maybe 1 or 2 online, 1 or 2 offline per week.&lt;br&gt;
&lt;br&gt;
Other salient facts: I learn quickly and get frustrated if I don&apos;t get beyond the basics fast, but learn much better through guided practice; very task-oriented.&lt;br&gt;
&lt;br&gt;
Also: passed a basic practical course in mathematical applications of C++, and programmed e.g. binary-to-hex converters in some obscure development environment or other without any major difficulties about 10 years ago and guessing it hasn&apos;t got any harder.&lt;br&gt;
&lt;br&gt;
Not wedded to the exact list either - if there are other cool things I should (could quickly) learn happy to hear them!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.197904</guid>
	<pubDate>Fri, 07 Oct 2011 08:55:49 -0800</pubDate>
	<category>css</category>
	<category>education</category>
	<category>java</category>
	<category>json</category>
	<category>onlinelearning</category>
	<category>perl</category>
	<category>rdf</category>
	<category>selfteaching</category>
	<category>semanticweb</category>
	<category>xhtml</category>
	<category>xml</category>
	<dc:creator>KMH</dc:creator>
	</item>
	<item>
	<title>Where my army of robots?</title>
	<link>http://ask.metafilter.com/195803/Where%2Dmy%2Darmy%2Dof%2Drobots</link>	
	<description>I&apos;d like to automate the creation of online exercises on my company&apos;s platform (as in: automatically generated matching, multiple choice, highlighting activities). Looking for some advice on what programming language(s) to use for a particular task.&lt;br&gt;
&lt;br&gt;
The company I work for has an online platform for creating online courses. As such, there are many different templates that a user can use: fill-in-the-blanks, highlighting, multiple choice, etc.&lt;br&gt;
&lt;br&gt;
The developers are flat-out busy and cannot help me with this task, so I&apos;ve got to go it alone (which I&apos;m excited about, since I&apos;d like to learn how to do these sorts of things).&lt;br&gt;
&lt;br&gt;
Every time you want to create a new activity, you are brought to a Create/Edit item page. On this page, you enter the activity title, introductory text, and text for interactive tokens (for matching, gap fill, reordering activities, for example).&lt;br&gt;
&lt;br&gt;
I&apos;m what you&apos;d call a false beginner when it comes to programming; I took a course on Java in university, this winter I learned some Perl (mostly to familiarize myself with the Mechanize module), and currently I&apos;m studying Python (along with the NLTK).&lt;br&gt;
&lt;br&gt;
What I&apos;d like to do is the following:&lt;br&gt;
1. Create xml files from a raw data dump. XML files will be structured to hold data for a particular activity type (i.e., there&apos;d be a structure for matching activities, which contains title, intro text, matching items). This will be fairly easy, I think (once I learn how to use XML!)&lt;br&gt;
2. Using some sort of browser automation, input the data from those XML files onto the online platform.&lt;br&gt;
&lt;br&gt;
The idea being, I can automate the creation of activities so that there is no human intermediary, no chance for human error (and it would be much cheaper).&lt;br&gt;
&lt;br&gt;
The sort of features that this program would have to deal with are:&lt;br&gt;
1. Plain text fields (Title, number of points a learner is assigned, matching tokens, MC questions).&lt;br&gt;
2. Rich text fields (using a built-in TinyMCE WYSYWIG editor)&lt;br&gt;
3. Newly created fields (i.e., you click a + button and it creates a new Multiple choice question). This was something I couldn&apos;t figure out when I was using the Mechanize module.&lt;br&gt;
4. Each item type has a slightly different setup, so I&apos;d have to create a function for each separate type.&lt;br&gt;
&lt;br&gt;
Looking at the source code for these pages, I see lots of references to Javascript.&lt;br&gt;
&lt;br&gt;
At this point, I&apos;m not interested in uploading images, video, or audio (all of which are supported by the TinyMCE editor). Mostly, I&apos;d like for text to inputted in these fields and then submitted. Eventually, this would be part of a bigger program that would automatically create activities from a transcript, or a csv of words and definitions.&lt;br&gt;
&lt;br&gt;
I&apos;ve started to play around with Selenium, which seems like it might be appropriate (although it seems to be more about regression testing) but I was wondering what some of you experts would do, when faced with a similar task. As I mentioned, I know a bit of Perl and am quickly learning Python.&lt;br&gt;
&lt;br&gt;
Curious to hear your thoughts... thanks in advance!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.195803</guid>
	<pubDate>Mon, 12 Sep 2011 01:18:27 -0800</pubDate>
	<category>automation</category>
	<category>browserautomation</category>
	<category>javascript</category>
	<category>perl</category>
	<category>python</category>
	<category>rte</category>
	<category>selenium</category>
	<category>tinymce</category>
	<category>xml</category>
	<dc:creator>mammary16</dc:creator>
	</item>
	<item>
	<title>Help me fix my nifty webapp</title>
	<link>http://ask.metafilter.com/190156/Help%2Dme%2Dfix%2Dmy%2Dnifty%2Dwebapp</link>	
	<description>Help me repair or replace this nifty &lt;a href=&quot;http://www.cif.iastate.edu/&quot;&gt;instrument availability web app&lt;/a&gt; on my facility&apos;s website. I am trying to update some features on the website for the instrumentation facility where I work. The &lt;a href=&quot;http://www.cif.iastate.edu/&quot;&gt;instrument availability&lt;/a&gt; table is something I&apos;m pretty clueless about. As far as I can tell, the script is written in Perl with a MySQL table that collects the logon-logoff information. This was written by some guy named Kyle six years ago, and even my predecessor isn&apos;t sure how it is pieced together. We can&apos;t even actually find the Perl script buried deep in the web server. So I&apos;m kind of starting from scratch. &lt;br&gt;
&lt;br&gt;
What I have: &lt;br&gt;
1. Five (soon to be six) computers that get logged on and logged off multiple times per day. It is possible I may extend this to other machines that are used in the facility in the future, but for now I&apos;m just focusing on the five that I manage. (Obviously there are more than 5 machines in the current table, and some of them are no longer in use, and some should read BROKEN but I don&apos;t know how to change the color.)&lt;br&gt;
2. A logon-logoff script on each computer that calculates how much time the user is on the computer which we use for billing purposes (I can get more information on this script if it would be helpful to figure out a solution). This data is collected in a central program for billing purposes. &lt;br&gt;
3. Computers on a variety of platforms. WinXP, a few flavors of RedHat, and some Solaris machines just for funsies. The Solaris machines are the only ones (of my machines) that are actually working with the script right now since the other machines were moved last fall and something in the database was borked when they were brought back online.  (VXR300 and VXR400 are the only two of mine that work in the table at the moment. AV600 and DRX400 don&apos;t work properly and I have a new one to add.)&lt;br&gt;
&lt;br&gt;
What I want:&lt;br&gt;
1. Something similar to the current setup to this that tells users live usage information so they can know what machines are available. It could be fancier than this, or it can be just as simple. &lt;br&gt;
1a. Something that is easily scalable for when we add new instrumentation. &lt;br&gt;
2. Options for open-source or commercial software packages that would do the same thing that I wouldn&apos;t have to code. &lt;br&gt;
3. If #2 is not an option, direction as to the best scripting language to use for this task and how to accomplish it. &quot;Hiring a computer science student part-time&quot; is an option we have if I can&apos;t figure it out ;)&lt;br&gt;
&lt;br&gt;
Thanks in advance!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.190156</guid>
	<pubDate>Thu, 07 Jul 2011 12:27:49 -0800</pubDate>
	<category>logoff</category>
	<category>logon</category>
	<category>mysql</category>
	<category>perl</category>
	<category>scripting</category>
	<category>web</category>
	<category>webapp</category>
	<dc:creator>sararah</dc:creator>
	</item>
	<item>
	<title>Early-2000s Perl Beckons with Plentiful Documentation</title>
	<link>http://ask.metafilter.com/189387/Early2000s%2DPerl%2DBeckons%2Dwith%2DPlentiful%2DDocumentation</link>	
	<description>I&apos;d like to get my feet wet with Perl. Baby steps, just a little beyond &quot;Hello World.&quot; I&apos;d like to create a simple little app. I have a few questions... There&apos;s a lot of great Perl info out there that shows early-2000s CGI methodology. It seems easier than using a framework. I tried Mojolicious but I just don&apos;t have the ability to see where the framework ends and Perl begins -- that is, I don&apos;t have enough experience to pick up where the documentation leaves off.&lt;br&gt;
&lt;br&gt;
So, question 1: Is it a big deal to just use the early-2000s stuff instead of a framework like Mojolicious? I was worried about e.g. clean URLs but it seems like some redirect work in .htaccess could fix that.&lt;br&gt;
&lt;br&gt;
Question 2: Assuming it&apos;s not a huge mistake to forego frameworks for now, I&apos;d like to make a simple CRUD app with an admin side. My first idea was to create a call log. Where to start with the admin-side part? For example, the Perl tutorial at Tizag.com will show me how to read from a database. How about writing to it, and password-protecting the admin area? Any good tutorials out there?&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.189387</guid>
	<pubDate>Mon, 27 Jun 2011 20:56:52 -0800</pubDate>
	<category>admin</category>
	<category>cgi</category>
	<category>crud</category>
	<category>framework</category>
	<category>learning</category>
	<category>perl</category>
	<category>script</category>
	<category>tutorial</category>
	<dc:creator>circular</dc:creator>
	</item>
	<item>
	<title>Decoding the question of the coder I need</title>
	<link>http://ask.metafilter.com/185107/Decoding%2Dthe%2Dquestion%2Dof%2Dthe%2Dcoder%2DI%2Dneed</link>	
	<description>What kind of Web programmer/coder do I need for this project? Where do I find such a person? I have an idea for a Web site; I&apos;d like to invest a bit of money in getting it to the point where I can maybe take it to Kickstarter and really get it off the ground. &lt;br&gt;
&lt;br&gt;
My Web skills begin and end with HTML and a bit of CSS. I tried learning some PHP once and got a nosebleed. &lt;br&gt;
&lt;br&gt;
The nexus of the idea is a functionality where people can enter text in an entry page of the site; this text will then be re-presented on an aggregate page that shows lots of different texts, being entered by different people at different points on the globe, with everything updating in real time. &lt;br&gt;
&lt;br&gt;
The &quot;data entry&quot; pages are simple and look like a straight-up text entry box. &lt;br&gt;
&lt;br&gt;
So Person A in Nebraska can be typing an essay about water tables and agriculture;&lt;br&gt;
Person B in Hong Kong can be typing a letter to his/her mother; &lt;br&gt;
Person C in Toronto can be typing a film script;&lt;br&gt;
&lt;br&gt;
and there&apos;s another page somewhere where you can see Window A, Window B, and Window C, and see the texts that Person A, B and C are entering in real time. &lt;br&gt;
&lt;br&gt;
There&#8217;s a lot more to it, but that&#8217;s the core. I&#8217;m not trying to be maddeningly vague, but I also don&#8217;t want to explain the whole thing in a way that will be (a) nauseatingly long or (b) totally give it away. The engine of the concept is this &quot;simulcasting&quot; of text entered by multiple people at multiple points. &lt;br&gt;
&lt;br&gt;
So... what kind of a Web programmer am I looking for? I know design is its own thing, but I really need to build the fundamentals of this so I can move on to proof-of-concept and then maybe Kickstarter. My programming knowledge is comprised of &lt;br&gt;
&lt;br&gt;
10 PRINT &quot;BUTT&quot; &lt;br&gt;
20 GOTO 10&lt;br&gt;
&lt;br&gt;
... so I don&apos;t have the foggiest of what kind of subset of coder/programmer will best suit my needs. &lt;br&gt;
&lt;br&gt;
And where&apos;s the best place to look? I need to start fleshing out a budget for this project, both for the initial phase and as a Kickstarter goal.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.185107</guid>
	<pubDate>Thu, 05 May 2011 11:21:29 -0800</pubDate>
	<category>c</category>
	<category>coder</category>
	<category>html</category>
	<category>ignoramus</category>
	<category>perl</category>
	<category>programmer</category>
	<category>python</category>
	<category>ruby</category>
	<category>sitecreation</category>
	<category>web</category>
	<dc:creator>Shepherd</dc:creator>
	</item>
	<item>
	<title>Help learning regex</title>
	<link>http://ask.metafilter.com/182958/Help%2Dlearning%2Dregex</link>	
	<description>I have a brain-block when it comes to Regex and really need to learn it.  Can anybody suggest really good tutorials with little exercises to reinforce the info?  I&apos;ve tried so many times to get a grasp and it just escapes me and would be invaluable for school/work since I&apos;m doing a lot of string processing in Perl and PHP.  Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.182958</guid>
	<pubDate>Fri, 08 Apr 2011 12:29:05 -0800</pubDate>
	<category>Perl</category>
	<category>PHP</category>
	<category>Regex</category>
	<category>tutorials</category>
	<category>tutuorial</category>
	<dc:creator>Raichle</dc:creator>
	</item>
	<item>
	<title>How to sell EPUB books for programmers</title>
	<link>http://ask.metafilter.com/179131/How%2Dto%2Dsell%2DEPUB%2Dbooks%2Dfor%2Dprogrammers</link>	
	<description>Selling EPUB e-books, adding on to a custom shopping cart app: handle like any downloadable file?  DRM?  If DRM is a bad idea, good layperson-accessible article explaining clearly why not?  If DRM is a good idea, how is it implemented? Assume I&apos;m some kind of coding genius (just to skip the &quot;it&apos;s too complex to do it yourself&quot; answers -- I may decide it&apos;s too complex, but I&apos;m not going to do so without understanding how it&apos;s implemented), what do I need to know to handle selling e-books?&lt;br&gt;
&lt;br&gt;
This would be for a small, niche, independent publisher.  Its clients are primarily educators and counselors.  They&apos;re already using a somewhat basic, but rather customized, shopping cart web site (in Perl, FWIW) with payments handled by a separately-hosted service that basically stores credit card and purchase list information which the client retrieves and processes (which assures everything is in stock, etc.).&lt;br&gt;
&lt;br&gt;
I&apos;m their web developer.  I don&apos;t have an e-book reader.  The company that has printed their books can convert them to EPUB format easily, but that doesn&apos;t include DRM -- which makes sense, since DRM seems likely to be something that&apos;s going to be added for each purchase as it happens.&lt;br&gt;
&lt;br&gt;
I need some basic clues.  Googling turned up stuff that doesn&apos;t look like what I need: arguments about the benefits/costs of DRM; DRM info for cell phone/other devices; where to find DRM-free stuff.&lt;br&gt;
&lt;br&gt;
I need to know:&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;&lt;br&gt;
&lt;li&gt;How to implement DRM myself (in Perl, but any language) assuming I&apos;m handed a bunch of EPUB files; and/or&lt;/li&gt;&lt;br&gt;
&lt;br&gt;
&lt;li&gt;Where to find an excellent, focused, short, clear article explaining how my client can decide whether they should implement DRM or not.&lt;/li&gt;&lt;br&gt;
&lt;/ul&gt;&lt;br&gt;
&lt;br&gt;
I already know (I think):&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;&lt;br&gt;
&lt;li&gt;How to find basic information on the EPUB format;&lt;/li&gt;&lt;br&gt;
&lt;br&gt;
&lt;li&gt;That, for some markets, DRM makes no sense because piracy is less of a concern than obscurity. (I&apos;m not sure whether that&apos;s true for this client&apos;s market.)&lt;/li&gt;&lt;br&gt;
&lt;br&gt;
&lt;li&gt;That just &lt;a href=&quot;http://ask.metafilter.com/115245/Print-Downloaders-Name-on-PDF-Ebook&quot;&gt;adding the purchaser&apos;s name&lt;/a&gt; into the text is one idea. It sounds good, but I&apos;m not convinced it&apos;s enough).&lt;/li&gt;&lt;br&gt;
&lt;br&gt;
&lt;/ul&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2011:site.179131</guid>
	<pubDate>Tue, 22 Feb 2011 13:37:34 -0800</pubDate>
	<category>coding</category>
	<category>DRM</category>
	<category>ebook</category>
	<category>e-book</category>
	<category>EPUB</category>
	<category>marketing</category>
	<category>Perl</category>
	<category>publishing</category>
	<category>shoppingcart</category>
	<category>web</category>
	<dc:creator>amtho</dc:creator>
	</item>
	<item>
	<title>parse pix/asa logs</title>
	<link>http://ask.metafilter.com/173278/parse%2Dpixasa%2Dlogs</link>	
	<description>Trying to create a Perl or shell script to parse/convert Cisco PIX/ASA logs into a CSV format. Has anyone had any success with this? Since all messages aren&apos;t standard, I&apos;m trying to think of the best way to approach this issue. Has anyone had any success, or have a good AWK, Grep, SED, or perl script that can get this done?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2010:site.173278</guid>
	<pubDate>Thu, 16 Dec 2010 05:05:54 -0800</pubDate>
	<category>asa</category>
	<category>awk</category>
	<category>grep</category>
	<category>parse</category>
	<category>perl</category>
	<category>pix</category>
	<category>sed</category>
	<dc:creator>fozzie33</dc:creator>
	</item>
	<item>
	<title>Renaming a whole bunch of files at once, in bash</title>
	<link>http://ask.metafilter.com/172940/Renaming%2Da%2Dwhole%2Dbunch%2Dof%2Dfiles%2Dat%2Donce%2Din%2Dbash</link>	
	<description>Please help me rename ~1300 image files in bash, en masse. I have a long list of files that are named like this:&lt;br&gt;
&lt;br&gt;
buczacz_(186-1-5723 a.)_0001_(IMG_6459).jpg&lt;br&gt;
buczacz_(186-1-5723 a.)_0002_(IMG_6461).jpg&lt;br&gt;
buczacz_(186-1-5723 a.)_0003_(IMG_6462).jpg&lt;br&gt;
etc.&lt;br&gt;
&lt;br&gt;
As you can see, there is a space between the &quot;5723&quot; and the &quot;a.&quot; in those names.  I would like to replace that space with an underscore character so that the filenames end up like this:&lt;br&gt;
&lt;br&gt;
buczacz_(186-1-5723_a.)_0001_(IMG_6459).jpg&lt;br&gt;
buczacz_(186-1-5723_a.)_0002_(IMG_6461).jpg&lt;br&gt;
buczacz_(186-1-5723_a.)_0003_(IMG_6462).jpg&lt;br&gt;
etc.&lt;br&gt;
&lt;br&gt;
This needs to be done in bash on a shared web hosting environment, so I can&apos;t install any fancy tools to assist me.  I&apos;m sure there is a simple regular expression to handle something like this, but I don&apos;t know how to construct it.  My geek-fu is not strong enough.  Please help?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2010:site.172940</guid>
	<pubDate>Sun, 12 Dec 2010 13:08:05 -0800</pubDate>
	<category>bash</category>
	<category>file</category>
	<category>files</category>
	<category>perl</category>
	<category>regularexpression</category>
	<category>rename</category>
	<category>resolved</category>
	<category>sed</category>
	<dc:creator>Asparagirl</dc:creator>
	</item>
	<item>
	<title>Perl regex hell</title>
	<link>http://ask.metafilter.com/165399/Perl%2Dregex%2Dhell</link>	
	<description>I have been hammering Google for about three hours now trying to find the answer to what I expected to be a simple question: WTF is up with regular expression backreferences in Perl? I cannot make this (simple) find-replace work. Trying to automate some file processing, stripping out junk in text output files from a data collection program and turning them into .csv files.&lt;br&gt;
&lt;br&gt;
I was doing this via an AppleScript, calling TextWrangler to do the grunt work using grep regex find/replace, and it worked well - but it was really slow once I compiled the AppleScript, so I am trying to use a call to a shell script instead to speed things up.&lt;br&gt;
&lt;br&gt;
The code in question:&lt;br&gt;
&lt;code&gt;sub replaceString {&lt;br&gt;
&amp;nbsp;&amp;nbsp;my ($search, $replace) = @_;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if( s/$search/$replace/ig ) { &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else { &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print; &lt;br&gt;
&amp;nbsp;&amp;nbsp;} &lt;br&gt;
 }&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
When I pass it text as the search and replace arguments (ie, find &quot;foo&quot; and replace with &quot;bar&quot;) it works. When I pass it arguments using backreferences, it doesn&apos;t work, even though the same argument in TextWrangler works just fine.&lt;br&gt;
&lt;br&gt;
Specific example: I need it to strip an initial 0 off of some timestamps in the file. If I use &quot;&lt;code&gt;\ +0(\d\d:)&lt;/code&gt;&quot; and &quot;&lt;code&gt;\1&lt;/code&gt;&quot; for my find and replace values, the zero is replaced by &quot;\1&quot; - literally. &quot;045:&quot; is changed to &quot;\145:&quot;. It doesn&apos;t work using dollar signs either. I&apos;ve spent most of my afternoon trying to figure out how to do this, but every damn result I find in searching just tells me how to use regex, not how to pass regex group elements from one match to the next. Perl apparently just forgets all regex values the second it starts interpreting a new match?&lt;br&gt;
&lt;br&gt;
I can&apos;t figure out why a program designed to work with text is so obstinately stupid when it comes to something as simple as a find-replace using pattern matching. There must be a really simple way to do this.&lt;br&gt;
&lt;br&gt;
(Notes: the subroutine will be called to replace a long string of matches, sequentially, so I need to be able to keep $search and $replace as undefined args passed by the main routine. In the end I need to be able to package this as a bundled app that anyone in my lab can run on the lab Macs [the reason I compiled the script], so I can&apos;t get too crazy with how this thing works.)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2010:site.165399</guid>
	<pubDate>Fri, 17 Sep 2010 14:38:01 -0800</pubDate>
	<category>answered</category>
	<category>backreference</category>
	<category>Perl</category>
	<category>regularexpressions</category>
	<dc:creator>caution live frogs</dc:creator>
	</item>
	<item>
	<title>Why would you write this in Perl?</title>
	<link>http://ask.metafilter.com/164079/Why%2Dwould%2Dyou%2Dwrite%2Dthis%2Din%2DPerl</link>	
	<description>Can you explain to me a block of Perl?  The tricky part is the last line, which is just a variable sitting on its own - no operation, no control structure, nothing. &lt;tt&gt;&lt;br&gt;
sub data_source {&lt;br&gt;
  my $self = shift;&lt;br&gt;
  my $d = $self-&amp;gt;{data_source};&lt;br&gt;
  $self-&amp;gt;{data_source} = shift if @_;&lt;br&gt;
  $d;&lt;br&gt;
}&lt;br&gt;
&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
I get everything except that last line, which really only makes sense if $d is some kind of function pointer.  I&apos;m under the impression that if that were so, &lt;tt&gt;&amp;amp;$d();&lt;/tt&gt; would be the correct syntax.  I think I must be horribly confused in some way; can you help me out?&lt;br&gt;
&lt;br&gt;
(code is from an open-source package with a busy author whom I don&apos;t want to bother with a possibly-basic Perl question.)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2010:site.164079</guid>
	<pubDate>Fri, 03 Sep 2010 13:17:51 -0800</pubDate>
	<category>confusion</category>
	<category>perl</category>
	<category>resolved</category>
	<dc:creator>yomimono</dc:creator>
	</item>
	<item>
	<title>Perl is making my head explode</title>
	<link>http://ask.metafilter.com/154527/Perl%2Dis%2Dmaking%2Dmy%2Dhead%2Dexplode</link>	
	<description>Script-filter: I&apos;ve been tasked with finding out who at our company is synchronizing to their home folders on our fileservers, and how often. Although initially it was recommended I do this in perl, my head is blowing up trying to get it to work. Lots of blundering attempts to ask for help inside. I hate scripting in perl. Hate it. I don&apos;t have an alternative scripting language I prefer. They all seem to make me react the same way. My head simply locks up and refuses to learn it, which I recognize as a very real problem. I can configure routers and switches all day long, and I&apos;ve created shell scripts and batch files with very little trouble. But perl seems to be a different animal entirely for me. &lt;br&gt;
&lt;br&gt;
Let&apos;s say for this we have 6 locations, all meshed via VPN and all accessible on the domain. Each location has a Win2k3 file server. On each file server, there is a \home\department directory for each department. In each \home\department directory, there is a &quot;Users&quot; folder. And in each &quot;Users&quot; folder, there is a folder for each user in that department. &lt;br&gt;
&lt;br&gt;
My task as it was given to me: Find out who is using their home folder, and how often. To do this it was suggested I create a script that will go through these User directories (and subdirs) and pull up the last accessed (or modified) file date. Provide easy to understand results. So if I last synchronized my home directory on 5/19/2010, I would want an email or a text file resulting from the script to show: &lt;br&gt;
Routergirl - 05/19/2010. &lt;br&gt;
&lt;br&gt;
It would be nice, even, if it came back with something like: &lt;br&gt;
Fileserver - Engineering - Routergirl - 05/19/2010. &lt;br&gt;
&lt;br&gt;
My current script has had me baffled for several days, and when I go to people in the company who know more about perl than I do, they seem to either want to run with it and create a new one on their own that still doesn&apos;t work, or they&apos;re too busy to help me. The person who has been the most help is my brother, who is currently 3k miles away and busy with his own job. Although perl was initially recommended by my boss, he is perfectly willing to accept other methods that provide the hoped for results. &lt;br&gt;
&lt;br&gt;
Is there a better way to do this? Could it be that perl is just the wrong solution? Maybe there is some automated free program we could be using for this that would save a load of headaches. I&apos;m not convinced that checking last modified or last accessed date on the files will even be a good check for this. People could circumvent it by browsing to their home folder on the fileserver and just modifying a file, therefore not actually synchronizing, but bringing up current results. Maybe there is something that can actually check when a user last accessed the directory itself?&lt;br&gt;
&lt;br&gt;
Entirely open to any and all suggestions. I realize this question is fairly scattered. If it comes down to all of you saying, &quot;Yes, perl is the best way to do this,&quot; then I know to sign myself up for some force feeding...errrr....classes. If anyone can provide resources on existing scripts that do this exact thing already (my google fu has failed me so far - they&apos;re all just enough different that they won&apos;t work), that would be much appreciated. If anyone knows of a better way - please tell me, cos maybe I&apos;m just missing the obvious, and I&apos;ve been known to overthink.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2010:site.154527</guid>
	<pubDate>Fri, 21 May 2010 13:55:44 -0800</pubDate>
	<category>perl</category>
	<category>script</category>
	<dc:creator>routergirl</dc:creator>
	</item>
	<item>
	<title>Java and Perl Refresher</title>
	<link>http://ask.metafilter.com/142450/Java%2Dand%2DPerl%2DRefresher</link>	
	<description>Been years since I&apos;ve written any Perl or Java (Core/Swing/Servlets/JSP). Have an interview soon, where can I find a quick and thorough refresher?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2010:site.142450</guid>
	<pubDate>Wed, 06 Jan 2010 09:26:09 -0800</pubDate>
	<category>java</category>
	<category>jobs</category>
	<category>perl</category>
	<category>tech</category>
	<dc:creator>blueplasticfish</dc:creator>
	</item>
	<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>
	
	</channel>
</rss>

