<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UMBC ebiquity &#187; Perl</title>
	<atom:link href="http://ebiquity.umbc.edu/blogger/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://ebiquity.umbc.edu/blogger</link>
	<description>EBB is the ebiquity research group\\\'s blog at the University of Maryland, Baltimore County (UMBC).  We focus on technologies that facilitate the design, implementation and control of distributed, intelligent information systems -- mobile and pervasive computing, ad hoc networking, multiagent systems, knowledge representation and reasoning, and the semantic web.  As the tides of technology ebb and flow, we hope the good ideas wash up on our beach and the bad ones drift back out to sea.</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:29:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Perl/Python Phrasebook</title>
		<link>http://ebiquity.umbc.edu/blogger/2009/02/05/perlpython-phrasebook/</link>
		<comments>http://ebiquity.umbc.edu/blogger/2009/02/05/perlpython-phrasebook/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 18:03:47 +0000</pubDate>
		<dc:creator>Tim Finin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://ebiquity.umbc.edu/blogger/?p=1761</guid>
		<description><![CDATA[TweetPeople who&#8217;s native language is Perl might find the Perl/Python phrasebook handy. When talking to the Python interpreter, some try hand gestures, typing slowly or using ALL CAPS, but these seldom work and can often annoy or even alarm the interpreter. This phrasebook covers the most common things you need to say to a simple [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1761" class="tw_button" style="clear:left; float: left; margin-right: 10px; margin-top:10px; margin-left: -80;float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Febiquity.umbc.edu%2Fblogger%2F2009%2F02%2F05%2Fperlpython-phrasebook%2F&amp;text=Perl%2FPython%20Phrasebook&amp;related=ebiquity&amp;lang=en&amp;count=vertical&amp;counturl=http%3A%2F%2Febiquity.umbc.edu%2Fblogger%2F2009%2F02%2F05%2Fperlpython-phrasebook%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://ebiquity.umbc.edu/blogger/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>People who&#8217;s native language is Perl might find the <a href="http://wiki.python.org/moin/PerlPhrasebook">Perl/Python phrasebook</a> handy.  When talking to the Python interpreter, some try hand gestures, typing slowly or using ALL CAPS, but these seldom work and can often annoy or even alarm the interpreter.  This phrasebook covers the most common things you need to say to a simple Python system.  For example, if you wanted to tell it to read your file as a list of lines, there&#8217;s a <a href="http://wiki.python.org/moin/PerlPhrasebook#Readingafileasalistoflines">phrasebook entry</a> that that shows just how to say it.</p>
<blockquote>
<p>my $filename = &#8220;cooktest1.1-1&#8243;;<br />
open my $f, $filename or die &#8220;can&#8217;t open $filename: $!\n&#8221;;<br />
@lines = &lt;$f>;</p>
<p>&#8211;</p>
<p>filename = &#8220;cooktest1.1-1&#8243;<br />
f = open(filename) # Python has exceptions with somewhat-easy to<br />
                   # understand error messages. If the file could<br />
                   # not be opened, it would say &#8220;No such file or<br />
                   # directory: %filename&#8221; which is as<br />
                   # understandable as &#8220;can&#8217;t open $filename:&#8221;<br />
lines = f.readlines()
</p></blockquote>
<p>Many of the entries also contain helpful facts and advice about the customs and social norms of native Python speakers.  Not only can this keep you out of trouble, it will deepen your understanding of the colorful and sometimes quaint Python speakers.   I hope that the pocket travel version of the phrasebook, suitable for downloading onto an ipod, will be out soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://ebiquity.umbc.edu/blogger/2009/02/05/perlpython-phrasebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

