<?xml version="1.0" encoding="windows-1252"?>
<node id="968802" title="Re: First time using Args" created="2012-05-03 15:03:51" updated="2012-05-03 15:03:51">
<type id="11">
note</type>
<author id="258724">
Not_a_Number</author>
<data>
<field name="doctext">
&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;A couple of other remarks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You go to a lot of trouble to validate and then open the input file given on the command line, but then you never actually read from the said file...&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;You increment &lt;c&gt;month&lt;/c&gt; by 1 in this line:&lt;br /&gt;
&lt;c&gt;$month = sprintf("%02d", $month+1);&lt;/c&gt;
&lt;p&gt;but, as you have already added 60 days, this will add a further 30 (or 31, or 28, or whatever).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;In fact, assuming that you don't want to increment &lt;c&gt;month&lt;/c&gt;, that whole chunk of code (four lines) could be simplified to:&lt;/li&gt;
&lt;c&gt;my $deadline = sprintf '%d-%02d-%02d 00:00:00', Add_Delta_Days( Today, 60 );&lt;/c&gt;
&lt;/li&gt;
</field>
<field name="root_node">
968777</field>
<field name="parent_node">
968777</field>
</data>
</node>
