<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Perl Subroutine Primer / Page 2</title>
      <link>http://www.webreference.com/programming/perl/subroutines/2.html</link>
      <description>Visitor Comments</description>
      <pubDate>Mon, 15 Sep 2008 13:07:38 GMT</pubDate>
      <lastBuildDate>Wed, 17 Sep 2008 13:21:31 GMT</lastBuildDate>
      <generator>Simple Comments 0.962</generator>

      <item>
         <title>Calling Methods - (Dan Ragle)</title>
         <link>http://www.webreference.com/programming/perl/subroutines/2.html#comment3</link>
         <description>When calling a method of an object, you typically use this syntax:&lt;br /&gt;&lt;pre&gt;$myObject-&amp;gt;method_name($param1, $param2);&lt;/pre&gt;&lt;br /&gt;So your example was almost right, except that you do not need a &#39;$&#39; in front of the method name itself. And remember that when that syntax is used, Perl automatically sends the object itself as the first parameter to the method; thus the first line of methods is often something like this:&lt;br /&gt;&lt;pre&gt;sub myMethod {&lt;br /&gt;   my $self = shift;&lt;/pre&gt;&lt;br /&gt;Good luck!</description>
         <pubDate>Wed, 17 Sep 2008 13:21:07 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/subroutines/2.html#comment3</guid>
      </item>
      <item>
         <title>calling method using variables - (Brad)</title>
         <link>http://www.webreference.com/programming/perl/subroutines/2.html#comment2</link>
         <description>I have an object, function name, and&lt;br /&gt;parameters and I want to call it. What&#39;s the right syntax?&lt;br /&gt;&lt;br /&gt;my $result = $myObject-&amp;gt;$func($parms);&lt;br /&gt;&lt;br /&gt;That doesn&#39;t work....</description>
         <pubDate>Wed, 17 Sep 2008 00:49:36 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/subroutines/2.html#comment2</guid>
      </item>
      <item>
         <title>Well written! - (Sham)</title>
         <link>http://www.webreference.com/programming/perl/subroutines/2.html#comment1</link>
         <description>Well written topic minus all the clutter. The focus was clear, with emphasis on the concepts. Now I am able to understand/write subroutines better. Thanks for sharing this with us. I am sure it&#39;s going to help many.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Sham</description>
         <pubDate>Mon, 15 Sep 2008 06:14:21 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/subroutines/2.html#comment1</guid>
      </item>

   </channel>
</rss>