<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-876358347971598886.post3705847090725267635..comments</id><updated>2009-11-04T12:32:22.803+02:00</updated><title type='text'>Comments on nothingmuch's perl blog: Sub::Call::Recur</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.woobling.org/feeds/3705847090725267635/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/3705847090725267635/comments/default'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/11/subcallrecur.html'/><author><name>nothingmuch</name><uri>http://www.blogger.com/profile/03975438115490089158</uri><email>nothingmuch@woobling.org</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-876358347971598886.post-3524670380989194845</id><published>2009-11-04T12:32:23.057+02:00</published><updated>2009-11-04T12:32:23.057+02:00</updated><title type='text'>You need to use 'goto' when you do that</title><content type='html'>You need to use &amp;#39;goto&amp;#39; when you do that</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/3705847090725267635/comments/default/3524670380989194845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/3705847090725267635/comments/default/3524670380989194845'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/11/subcallrecur.html?showComment=1257330743057#c3524670380989194845' title=''/><author><name>nothingmuch</name><uri>http://www.blogger.com/profile/03975438115490089158</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='04344917020781355723'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.woobling.org/2009/11/subcallrecur.html' ref='tag:blogger.com,1999:blog-876358347971598886.post-3705847090725267635' source='http://www.blogger.com/feeds/876358347971598886/posts/default/3705847090725267635' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-876358347971598886.post-5946449649296442186</id><published>2009-11-04T07:10:19.456+02:00</published><updated>2009-11-04T07:10:19.456+02:00</updated><title type='text'>I like that your syntax is cleaner, but you can ju...</title><content type='html'>I like that your syntax is cleaner, but you can just do the following:&lt;br /&gt;&lt;br /&gt;sub fact {&lt;br /&gt;    my ( $n, $accum ) = @_;&lt;br /&gt;...&lt;br /&gt;    } else {&lt;br /&gt;        @_ = ($n - 1, $n * $accum)&lt;br /&gt;        &amp;amp;fact;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The &amp;amp; sigil/operator/whatever, when used without trailing (), will start the subroutine without altering the stack - ie. the current @_ will be used.&lt;br /&gt;&lt;br /&gt;You can use that same approach for optimising tail recursive calls as well.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/3705847090725267635/comments/default/5946449649296442186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/3705847090725267635/comments/default/5946449649296442186'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/11/subcallrecur.html?showComment=1257311419456#c5946449649296442186' title=''/><author><name>Mark Aufflick</name><uri>http://www.blogger.com/profile/07617436084987830846</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.woobling.org/2009/11/subcallrecur.html' ref='tag:blogger.com,1999:blog-876358347971598886.post-3705847090725267635' source='http://www.blogger.com/feeds/876358347971598886/posts/default/3705847090725267635' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-876358347971598886.post-6148622822362807617</id><published>2009-11-02T13:23:16.087+02:00</published><updated>2009-11-02T13:23:16.087+02:00</updated><title type='text'>A little benchmark to prove how useful this can be...</title><content type='html'>A little benchmark to prove how useful this can be:&lt;br /&gt;&lt;br /&gt;http://gist.github.com/224094</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/3705847090725267635/comments/default/6148622822362807617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/3705847090725267635/comments/default/6148622822362807617'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/11/subcallrecur.html?showComment=1257160996087#c6148622822362807617' title=''/><author><name>brunov</name><uri>http://www.blogger.com/profile/11144836575476600438</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.woobling.org/2009/11/subcallrecur.html' ref='tag:blogger.com,1999:blog-876358347971598886.post-3705847090725267635' source='http://www.blogger.com/feeds/876358347971598886/posts/default/3705847090725267635' type='text/html'/></entry></feed>