<?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>thoughts of a doug &#187; Perl6</title>
	<atom:link href="http://somethingdoug.com/thoughts/tag/perl6/feed/" rel="self" type="application/rss+xml" />
	<link>http://somethingdoug.com/thoughts</link>
	<description></description>
	<lastBuildDate>Fri, 21 Oct 2011 05:03:20 +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>our $AUTHORITY</title>
		<link>http://somethingdoug.com/thoughts/2008/12/31/our-authority/</link>
		<comments>http://somethingdoug.com/thoughts/2008/12/31/our-authority/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 05:56:15 +0000</pubDate>
		<dc:creator>Douglas Wilson</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[Perl6]]></category>

		<guid isPermaLink="false">http://somethingdoug.com/thoughts/?p=28</guid>
		<description><![CDATA[So what is the business with the following global variable I keep seeing in CPAN modules these days? our $AUTHORITY; So I searched a bit to figure it out, and found it made its way from Perl 6. A description of its use in Perl 6 can be found in Synopsis 11: Modules. Essentially Perl [...]]]></description>
			<content:encoded><![CDATA[<p>So what is the business with the following global variable I keep seeing in CPAN modules these days?</p>
<pre style="padding-left: 30px;">our $AUTHORITY;</pre>
<p>So I searched a bit to figure it out, and found it made its way from Perl 6. A description of its use in Perl 6 can be found in <a href="http://perlcabal.org/syn/S11.html#Versioning">Synopsis 11: Modules</a>. Essentially Perl 6 saw that there would be no reason why there can&#8217;t be more than one module named Foo::Bar. You can already designate a minimum version required of a module, and you still can in Perl 6, but they saw that Foo::Bar is just a short name for the module. Its full name includes more parts, including the authority. So to load up the Foo::Bar I wrote in <a href="http://cpan.org/">CPAN</a> (note: I have no such module), you would say:</p>
<pre style="padding-left: 30px;">use Foo::Bar:auth&lt;cpan:DOUGDUDE&gt;;</pre>
<p>When in the Foo::Bar module I specify:</p>
<pre style="padding-left: 30px;">our $AUTHORITY = 'cpan:DOUGDUDE';</pre>
]]></content:encoded>
			<wfw:commentRss>http://somethingdoug.com/thoughts/2008/12/31/our-authority/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

