<?xml version="1.0" encoding="windows-1252"?>
<node id="996857" title="Re: Modify the Object" created="2012-10-02 09:13:26" updated="2012-10-02 09:13:26">
<type id="11">
note</type>
<author id="918402">
2teez</author>
<data>
<field name="doctext">
&lt;p&gt;
Just a cent addition to what has been said:
&lt;br&gt;
Please, you &lt;b&gt;don't EXPORT&lt;/b&gt; any subroutine from module that is written to be OO.&lt;br&gt; So, your usage should be:
&lt;code&gt;package First;
use Params::Validate qw(validate :types);

sub new{
...
}
...
&lt;/code&gt;
And to use the module, then you use
&lt;code&gt;
use strict;
use warnings;

use First;
...
&lt;/code&gt;
check these:
[doc://perlmod], [doc://perlmodlib], etc
&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-918402"&gt;
If you tell me, I'll forget.&lt;br&gt;
If you show me, I'll remember.&lt;br&gt;
if you involve me, I'll understand.&lt;br&gt;
--- Author [unknown to me]
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
996852</field>
<field name="parent_node">
996852</field>
</data>
</node>
