<?xml version="1.0" encoding="windows-1252"?>
<node id="602926" title="Re^2: validating sub arguments" created="2007-03-02 13:29:19" updated="2007-03-02 08:29:19">
<type id="11">
note</type>
<author id="55272">
bluto</author>
<data>
<field name="doctext">
&lt;i&gt;I guess the question you should be asking, why is unsafe data getting passed to subroutines/methods in the first place.&lt;/i&gt;&lt;p&gt;
Perhaps from the programmer mistyping the argument list or misunderstanding the interface?&lt;p&gt;Validating data from external sources is always needed.  Validating data from internal sources is very useful during development and testing (ala C's assert()) and sometimes during production.  Params::Validate has helped save me from my own bad memory/typing a number of times.  It's not too hard to set it up so you can remove it from production code easily if that's what you want.</field>
<field name="root_node">
602898</field>
<field name="parent_node">
602910</field>
</data>
</node>
