<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Private methods in Perl5</title>
	<atom:link href="http://peter.makholm.net/2009/08/14/private-methods-in-perl5/feed/" rel="self" type="application/rss+xml" />
	<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/</link>
	<description></description>
	<lastBuildDate>Wed, 03 Feb 2010 20:53:46 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: wolfgang</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33969</link>
		<dc:creator>wolfgang</dc:creator>
		<pubDate>Wed, 09 Sep 2009 20:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33969</guid>
		<description>I haven&#039;t tried this private functions and methods in Perl5 and I guess it will be a good thing for me to try it. Hopefully to see your next version.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried this private functions and methods in Perl5 and I guess it will be a good thing for me to try it. Hopefully to see your next version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ScholarshipAdvice</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33544</link>
		<dc:creator>ScholarshipAdvice</dc:creator>
		<pubDate>Fri, 21 Aug 2009 05:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33544</guid>
		<description>This is great, at first I didn&#039;t really know that I can do this but as i tried working on it and see what it does, i am so delighted that I was able to read your post and very satisfied about it....thanks...</description>
		<content:encoded><![CDATA[<p>This is great, at first I didn&#8217;t really know that I can do this but as i tried working on it and see what it does, i am so delighted that I was able to read your post and very satisfied about it&#8230;.thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phaylon</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33422</link>
		<dc:creator>phaylon</dc:creator>
		<pubDate>Sat, 15 Aug 2009 17:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33422</guid>
		<description>(last comment was of course meant in addition to your functional usage of it, if you load it, why not use it? :)</description>
		<content:encoded><![CDATA[<p>(last comment was of course meant in addition to your functional usage of it, if you load it, why not use it? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phaylon</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33421</link>
		<dc:creator>phaylon</dc:creator>
		<pubDate>Sat, 15 Aug 2009 17:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33421</guid>
		<description>Btw, you probably want to use &#039;namespace::clean&#039; last, after all your other imports. It will remove anything imported before it, and will leave anything after alone.</description>
		<content:encoded><![CDATA[<p>Btw, you probably want to use &#8216;namespace::clean&#8217; last, after all your other imports. It will remove anything imported before it, and will leave anything after alone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuval Kogman</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33402</link>
		<dc:creator>Yuval Kogman</dc:creator>
		<pubDate>Sat, 15 Aug 2009 01:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33402</guid>
		<description>In your &lt;a href=&quot;http://cpansearch.perl.org/src/PMAKHOLM/Sub-Private-0.01/t/Foo.pm&quot; rel=&quot;nofollow&quot;&gt;test class&lt;/a&gt; your usage of private symbols is not as method lookups, but as function calls.

$self-&gt;bar will not work, even from inside the Foo class where it should.</description>
		<content:encoded><![CDATA[<p>In your <a href="http://cpansearch.perl.org/src/PMAKHOLM/Sub-Private-0.01/t/Foo.pm">test class</a> your usage of private symbols is not as method lookups, but as function calls.</p>
<p>$self-&gt;bar will not work, even from inside the Foo class where it should.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Re: Private methods in Perl5 at Infinite Pig Theorem</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33395</link>
		<dc:creator>Re: Private methods in Perl5 at Infinite Pig Theorem</dc:creator>
		<pubDate>Fri, 14 Aug 2009 21:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33395</guid>
		<description>[...] Peter, I have a single word for you: Moose. [...]</description>
		<content:encoded><![CDATA[<p>[...] Peter, I have a single word for you: Moose. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chromatic</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33392</link>
		<dc:creator>chromatic</dc:creator>
		<pubDate>Fri, 14 Aug 2009 18:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33392</guid>
		<description>I&#039;m not sure you get &quot;private methods&quot; with this approach.  You won&#039;t be able to invoke private subs as methods this way, as when the time comes to perform the lookup, the symbol is no longer available.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure you get &#8220;private methods&#8221; with this approach.  You won&#8217;t be able to invoke private subs as methods this way, as when the time comes to perform the lookup, the symbol is no longer available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frew</title>
		<link>http://peter.makholm.net/2009/08/14/private-methods-in-perl5/comment-page-1/#comment-33388</link>
		<dc:creator>frew</dc:creator>
		<pubDate>Fri, 14 Aug 2009 15:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://peter.makholm.net/?p=395#comment-33388</guid>
		<description>You can also do private methods without any magic at all.  Heres a super basic example:

package Foo;

my $private_foo = sub { print &quot;private&quot; };
sub public_foo { my $self = shift; $self-&gt;$private_foo }

1;</description>
		<content:encoded><![CDATA[<p>You can also do private methods without any magic at all.  Heres a super basic example:</p>
<p>package Foo;</p>
<p>my $private_foo = sub { print &#8220;private&#8221; };<br />
sub public_foo { my $self = shift; $self-&gt;$private_foo }</p>
<p>1;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
