<?xml version="1.0" encoding="windows-1252"?>
<node id="1008107" title="Right place to put common execute code in App::Cmd" created="2012-12-10 09:49:43" updated="2012-12-10 09:49:43">
<type id="115">
perlquestion</type>
<author id="840342">
McA</author>
<data>
<field name="doctext">
&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I do have a problem with App::Cmd at the moment. I don't know where the right place is to execute code which is common to all commands.&lt;/p&gt;
&lt;p&gt;In all commands I want to execute some common code without explicitly calling it in the command's &lt;code&gt;execute&lt;/code&gt; method. And I want that &lt;code&gt;validate_args&lt;/code&gt; is run before.&lt;/p&gt;
&lt;p&gt;Hints and ideas welcome.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
McA&lt;/p&gt;</field>
</data>
</node>
