<?xml version="1.0" encoding="windows-1252"?>
<node id="991829" title="Re^2: Prototype question" created="2012-09-05 08:54:04" updated="2012-09-05 08:54:04">
<type id="11">
note</type>
<author id="683288">
rovf</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;
&lt;/i&gt;&lt;/blockquote&gt;
I know; however, if you want to use the "code block" syntax to call a function, you &lt;b&gt;must&lt;/b&gt; define a prototype. At least Perl 5.8.8 (which I still have to use) does not provide an alternative.
&lt;p&gt;
My solution to my original problem was to use a cover function. Basically I define my function f without prototypes, and then add a function 
&lt;code&gt;
sub g(&amp;@) { &amp;f }
&lt;/code&gt;
to provide the ability to write codeblocks.
&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-683288"&gt;
--&amp;nbsp;&lt;br&gt;
Ronald Fischer &amp;lt;ynnor@mm.st&amp;gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
991819</field>
<field name="parent_node">
991827</field>
</data>
</node>
