<?xml version="1.0" encoding="windows-1252"?>
<node id="942011" title="Can you explain the result?" created="2011-12-06 08:15:29" updated="2011-12-06 08:15:29">
<type id="115">
perlquestion</type>
<author id="916945">
PerlOnTheWay</author>
<data>
<field name="doctext">
&lt;code&gt;
sub func {
	my ($delimiter, $text) = @_;
	return 1 and 0;
}

use Data::Dumper;
print Dumper(func());
&lt;/code&gt;

&lt;p&gt;
guess what?
&lt;/p&gt;
&lt;p&gt;
the result is &lt;code&gt;$VAR1 = 1;&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
anyone knows the reason?
&lt;/p&gt;

&lt;b&gt;
seems that Perl gives &lt;code&gt;return&lt;/code&gt; the same priority as an ordinary sub,is this really a good design?
&lt;/b&gt;
</field>
</data>
</node>
